Vector 3 flipping rotations
all vector3 stuff makes everything (atleast for me) flip some rotations when its over 180 degrees and reverse itself. is there a way to not make it flip?
{
var delta = target.transform.position - transform.position;
delta.z = 0;
var rotation = Quaternion.LookRotation(delta);
this.transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * Damping);
}
this just makes my object flip which isnt very nice...
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612121716im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to move an object on a 2d plane forward, backward, and in a rotation about the mouse position? 0 Answers
How to use Quaternion.Slerp with transform.LookAt? 3 Answers
Rotat a GameObject and than shoot it in the New (x) direction 1 Answer
Get object's rotation around axis defined by vector 2 Answers
Inspactor Roation to Vector3 0 Answers