Getting one object to move away from the other...
Kamazar
Member Posts: 287
Yes, even Sous-Chefs have questions. If there were a Private Message function (which I'm sure will come eventually) I'd just message one of the people that I know would be able to solve the problem, but 'til then...
So I have multiple red dots and multiple blue dots. I want a red dot to chase a blue dot at a certain distance, and the blue dot to run away from the red dot when that happens (I'll just set a boolean attribute to true when the red dot starts chasing the blue dot). I know it requires the magnitude function, but could someone at least point me to a demo? Thanks.
So I have multiple red dots and multiple blue dots. I want a red dot to chase a blue dot at a certain distance, and the blue dot to run away from the red dot when that happens (I'll just set a boolean attribute to true when the red dot starts chasing the blue dot). I know it requires the magnitude function, but could someone at least point me to a demo? Thanks.
Comments
Blue Dot = Human
Red Dot = Zombie
Collision with Blue Dot and Red Dot turn Blue Dot into Red Dot.
But to make it more realistic, I want the zombie to run towards a human when it spots it, and the human to run away. There's no real goal for the dots. They're just the general populace waiting to be consumed.