Full mesh rotation over N frames

I’m keeping a frames count in my animate function and I want to rotate a mesh one full rotation (x-axis for example) over a specific amount of frames?

If I want one full rotation over 100 frames…

mesh.rotation.x += ???

Many thanks!

What about :
mesh.rotation.x = ( Math.PI * 2 ) * ( frame / 100 );

1 Like

Yup, that was what I was looking for. Thank you!

1 Like