SetAngularVelocityEx

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the angular velocity of each of the 3 X/Y/Z axes, of the collision object (if any) attached to the specified node in the calling reference's loaded 3D model.

  • By default, the function sets the velocities relative to the object's local axes, unless the optional 5th argument, setGlobal, is non-zero, on which case the velocities are set relative to the world, global axes.
  • The velocity is in units of 2π rad/s (essentially, revolutions/second).
  • If the 3D model does not have the specified node, or the node does not have a mobile collision object, the function returns 0.

Syntax

[help]
(success:0/1) reference.SetAngularVelocityEx nodeName:string velocityX:float velocityY:float velocityZ:float setGlobal:0/1

Example

objectRef.SetAngularVelocityEx "TumbleweedNV" 0 15 0 

See Also