Notifications
Clear all

[Closed] Get position of OBJ after stepping forward a simulation step

To step forward in MassFX’s simulation time, you can run the script:

PxStepSimulation()

After that, though, how can I get the position of an object? If I do:

myobj.pos

It will return the object’s position, not including where it has moved during the simulation.

Nevermind! I think I figured it out with:

(PxGetCurrentNode()).pos
or
PxGetNodePosition($myobj)