1
General / Re: Collision Detection Problems
« on: January 15, 2014, 03:30:04 am »It looks ok.
Maybe randomPosition() isn't as random as you think, and it gives you the same result as the first time they collides. So it "moves" to the same position.
It's only a guess since you didn't post a complete and minimal code which reproduces the problem.
Oh duh, I'm almost positive that's the problem. I didn't even think of that until you said something. I'm still trying to get used to the new <random> header and how everything works. I'm seeding the engine with a number that I chose arbitrarily, when I think I'm supposed to be seeding with a random_device? Anyway, I have stuff to do right now, but I think I got it. Thanks.