Getting one object to move away from the other...

KamazarKamazar Member Posts: 287
edited November -1 in Working with GS (Mac)
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.

Comments

  • KamazarKamazar Member Posts: 287
    Nah, that's where it gets tricky. The number of red and blue dots range between 5-30. It's sort of a zombie outbreak simulator. Basically...

    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.
Sign In or Register to comment.