Animate rotation of mesh around local axis (demo of options including Quaternions)

Hello, welcome to the Babylon forum, and thanks for posting a playground! It is helpful.

You can get all those methods to work by inserting a transform node as the angled bolt’s parent, that way the animation behaves as expected in the local space of the parent node.

I modified the playground to show how this can be done with the given model: https://playground.babylonjs.com/#8LFTCH#2108.

…or you can add the parent node directly in the model, so you don’t have to insert it with code after it’s loaded.

1 Like