- Home /
Question by
Anonymous 1 · Dec 08, 2011 at 01:50 PM ·
rigidbodyvector3spheremovetowardsspherecollider
sphere won't rotate when vector3.movetowards is used
The Rigidbody sphere isn't rotating when used vector3.movetowards . It just goes that place static-ly ..
Comment
You probably want to use Vector3.RotateTowards? Or transform.Rotate?
In Unity, Vector3 are often used as point data as well as vector data.
Best Answer
Answer by funkyllama · Dec 08, 2011 at 04:18 PM
As Rabwin said, you might want to use Vector3.RotateTowards before the Vector3.MoveTowards. If you want it to rotate before moving, run the Vector3.RotateTowards in a Coroutine.
Thank you! And Thankx Rabwin.Got it working fine! Awesome community.
Your answer