cherry picked from gatgui fork:
export worldPosition and worldVelocity if requested