A question about the relationship between physics and root node locations?

To test out some ideas I am simulating my physics on a central server and then sending the updates of the objects to the clients.



Previously, prior to adding physics, I could just loop over the scene graph and pass the new object locations to the clients to update their positions. However, I have noticed that, when using physics space, it seems the location of the objects is only available via the physics space method getPhysicalLocation() - the get localTranslation methods do not seem to include the new locations.



Is this correct, or have I completely misunderstood?



Matt

The physics locations are applied when the controls are updated in updateLogicalState(). So either use a control to transfer the data (it will be called after the physics control if it has been added later) or use the physics values.

Ahh, I see. Fantastic, thanks for the help.