Follow Me!!! PLease

Guy’s I have a character that I want when he/she goes near an object say a cube - it gets stuck to him. It’s similar to that game with the alien rolling in a ball attracting all kinds of things to him. Thanks for any help in right direction. Noob to Unity and .JS not noob to Action Script. thanks

should the cube start to get closer (when you enter a specific range) to your player and follow the player? or what do you mean?

Thanks for responding so quickly!

  1. Player controller get’s close enough to collide with cube.

  2. Once it collides with cube, the cube get’s attached to it and follws the player controller.

It’s like a magnet effect. Magnet gets close the cube get’s pulled in to it.

Thanks

i even posted this here^^
if you enter a range → chasing switches to true, the enemy/cube/whatever is going to aim your player and start moving…have fun;)

http://forum.unity3d.com/viewtopic.php?t=58318