How to rotate a mesh in animation around a normal vector

The question is clipped as a below image:

You can either build two Quaternions ( Quaternion | Babylon.js Documentation ) and then Slerp between the two, or build two Vector3 ( Vector3 | Babylon.js Documentation ) and Lerp between them.

Edit: here is a sample PG: https://playground.babylonjs.com/#NY7RSE#1

2 Likes

@imerso , how devious! Answering a clipped question with Greek & mathematical symbols in May. They are going to be in for a surprise when the grade comes back.

It’s college end of semester. I am even less helpful with Blender questions than normal in May.

2 Likes

Great, got the point.
Use registerBeforeRender to register the handle function. Then change srcRot in iteration with slerp methology.