- Home /
Question by
SrujanBarai · Jun 01, 2015 at 01:16 PM ·
rotationquaternionworldspacequaternion.slerp
Rotation with respect to world instead of the object itself using Quaternion in unity
this.transform.rotation = Quaternion.Lerp(this.transform.rotation, Quaternion.Euler(xtimesHit*90,ytimesHit*90,ztimesHit*90), Time.deltaTime*speed);
The above code is rotating my object w.r.t itself. How can I make it rotate w.r.t. the world space?
Comment
Your answer
Follow this Question
Related Questions
Get real compass direction 1 Answer
quaternion and interpolation: no reaction? 0 Answers
Clock script with custom time not working 0 Answers
Stage selection problem 1 Answer
few question about quaternion slerp 3 Answers