- Home /
Movement question...
Hello. How can I make it so that when an object enters a certain spherical trigger zone, the object starts moving towards the spheres center?
Answer by Jesse Anders · Jan 17, 2011 at 12:12 AM
You can use OnTriggerStay() to determine when the object is within the trigger zone. As for moving the object towards the sphere center, that depends on how the object is represented (e.g. character controller, rigid body, etc.). If you're just manipulating the transform directly, then the methods discussed in your recent threads on moving one object towards another should be a good starting point.
Your answer
Follow this Question
Related Questions
Object moving OnTriggerEnter, please help?! 2 Answers
Simple movement problem. Need units to stop dead on collision. 3 Answers
Interrupt a MoveTowards when triggering 2 Answers
Rigidbody Version of RotateAround 2 Answers
Moving object with a trigger? 0 Answers