Update mesh.forward Manually

Hello,
Im currently developing a client / server game. The server runs the gameloop at 10 updates per second.
In my Movement System im replaying all client inputs again to get the exact position the client has.

The position was a little bit off in the server even though the client & server used the same movement code. A a few hours later I found out, that the mesh.forward doesent get updated when I set the mesh rotationQuaternion. mesh.forward will probably get updated in the scene.render function.

Is there a way to update mesh.forward manually when I set the mesh.rotationQuaternion?

You just need to manually call mesh.computeWorldMatrix() to force all matrix updates and forward will be correct then:)