Question by
Grady_Leens · Apr 17, 2019 at 12:38 AM ·
rotationtransformpositioneulerangleseuler
Perfectly Syncing the rotation of two objects
So this might be a dumb question but i'm trying to take the opportunity to learn something. So basically i have an object in front of my fps camera and i need it to stay where it is, but it cant be parented cause i want to put a smoothdamp on it to give it some weight. (Make sense so far?) The only code written right now is just matching the rotation.
transform.localEulerAngles = new Vector3(TargetX.localEulerAngles.x, TargetY.localEulerAngles.y, 0.0f);
i have Transforms for TargetX and TargetY. it works fine but is really glitchy when moving the mouse. if anyone has tips input or help with a solution that would be awesome thank you!
Comment
Your answer
Follow this Question
Related Questions
copy rotation script doesent copy the full 360 degrees? 0 Answers
Rotation problem 0 Answers
How can I make an object transform to given position and rotation 2 Answers
How can I deal with eulers 1 Answer