- Home /
Question by
whisker-ship · May 17, 2016 at 03:17 AM ·
rotationlookatrotate objectcenter
Rotate Z-Axis towards center.
I'm trying to get an object's Z axis to always be rotating towards the center (Vector3.zero local position aka parent's position)
So if I move the sword to the left side I want the Z-Axis to still be rotating towards the center, it would look like this:
I've tried using transform.LookAt and other rotation functions but I can't figure it out, I'm sure there's a really simple way to do this.
Comment
Your answer
Follow this Question
Related Questions
Rotating enemy object to face the player when moving 2 Answers
Cannot rotate an object around the center 5 Answers
Max rotation degrees 1 Answer