User Tools

Site Tools


tnhscript:trapmoverelative

TrapMoveRelative

Move and apply velocity to an object relative to its current position.

Works similarly to a teleport trap. Instead of a reference object, you specify the position and rotation to move directly. The values you give will be added to the current position, rotation, and velocity of the object. Coordinates that you don’t specify are left as-is.

An object with a Physics\Model\Type of None cannot have velocity.

Inherits GenericControl
Links ControlDevice
Parameters x,y,z (number) Add to the position.
dx,dy,dz (number) Add to the velocity.
h,p,b (number) Rotate the object.
dh,dp,db (number) Add to rotational velocity.
rotate_axes Add position relative to the rotated axes of the object.
tnhscript/trapmoverelative.txt · Last modified: 2010/11/23 00:12 (external edit)