How to use animation by applymatrix4?

As title.
I want to do rotate by apply a matrix4.
But i got a warning message like picture i update.
Is there any wrong?
I have tried new KeyFT(‘.matrix’) ans (‘.matrix.elements’) ,but all not work.
Thanks all.

Animating the rotation of a 3D object by a matrix isn’t supported and also not recommended. When animating rotation, always use quaternions.

Convert the rotation matrix to a quaternion and then create an instance of QuaternionKeyframeTrack. The following example creates such a track if you need a complete code example: three.js webgl - animation - basic

1 Like

i got it.