Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.getVelocity
8.0

<node3d>.getVelocity

Returns the velocity of the node

<node3d>.getVelocity(  
mode = viz.ABS_GLOBAL  
)  
mode = viz.ABS_GLOBAL
If viz.ABS_GLOBAL, the velocity will be specified in global coordinates. Otherwise the velocity will be specified in the objects local coordinate frame.

Remarks

This command will return the current velocity of the node within the physics simulation.

Return Value

[ vx, vy, vz ]

See also

<node3d>.applyForce
<node3d>.applyTorque
<node3d>.getAngularVelocity
<node3d>.setAngularVelocity
<node3d>.setVelocity