Question by
Russ242 · Feb 27, 2017 at 09:40 PM ·
rotationraycasttransformlateupdate
Trying to match two objects rotations smoothly.
We are wanting an object to sync up rotation with the player but it seems to be out of sync with it slightly. As seen here: https://puu.sh/umHdd/c3d63e9abc.mp4
We have matched up the position and rotation useing this code:
objectSelected.transform.position = raycastHitPos;
objectSelected.transform.rotation = transform.rotation;
Comment
Your answer
Follow this Question
Related Questions
Make rotation of two objects match in Unity3D 1 Answer
DESPERATE How to align transform.up with another vector3 (direction) ? 1 Answer
3 Axis Camera Rotation 0 Answers
Record and replay movement 0 Answers
Questions about Rotations in unity 1 Answer