NRA Posted April 22, 2018 Share Posted April 22, 2018 Hi, Somebody knows a way to smooth the lookAt() action when you change the subject, the mesh is looking at? Thanks Quote Link to comment Share on other sites More sharing options...
Gijs Posted April 22, 2018 Share Posted April 22, 2018 You could take the initial rotation and the lookAt rotation (Quaternions), and interpolate between them (slerp): http://www.babylonjs-playground.com/#JEHHJ2 Wingnut 1 Quote Link to comment Share on other sites More sharing options...
NRA Posted April 23, 2018 Author Share Posted April 23, 2018 Hey @Gijs Thank you so much! It works great! It is complex to newbies work with quaternions operations, but with your help I can see it better! Thanks again! Gijs 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.