Translations and rotations on the net

I’ve got clients who can send each other their own positions [vector3f] and rotations [quaternions]. Player and enemies are PhysicsCharacterNode.

Which is the right way to move the enemies on the screen?

And to rotate the models inside them? Which methods I have to use?



on PhysicsCharacterNode

setLocalRotation

setLocalTranslation

setWalkDirection

setWorldRotation

setWorldTranslation



or after getting getPhysicsCharacter

setPhysicsLocation

setPhysicsRotation

setWalkDirection



?



Thanks a lot

r.

For characters it would be setLocalTranslation (to avoid drift) and walkDirection (to sync the objects)