Motorhelper : Helper

   

Motorhelper - superclass: Helper; super-superclass:Node - classID: #(1521418551, 1297775854) 

The Reactor dynamics system has been retired and REMOVED from 3ds Max 2012.

   

Value > MAXWrapper > Node > Helper > reactor > Motorhelper

Description:

The motor helper allows you to apply a turning force to any non-fixed rigid body in the scene. You can specify the target angular velocity and the maximum angular impulse the motor can apply to achieve this velocity.

   

Constructors:

Motorhelper ... rctMotor ... 

   

Properties:

.RigidBody (Rigid_Body) : node 

Get/Set the rigid body to apply impulse to.

   

.axis : integer 

Get/Set the local axis for the rigid body about which the motor will apply impulses. Possible values are:

0 - X axis

1 - Y axis

2 - Z axis

   

.angularSpeed (Angular_Speed) : float 

Get/Set the target angular velocity that the motor will work to achieve for the rigid body. It is specified in radians per second.

   

.gain : float 

Get/Set the maximum angular impulse that the motor can apply to the rigid body in order to achieve the target velocity.

   

.iconSize (Icon_Size) : float 

Get/Set the icon size.

   

.disabled : boolean 

When set to true , the MotorHelper will not be considered by the simulation.

   

.showText (Show_Text) : boolean 
.displayType (Display_Type) : integer 

   

Interfaces

Interface:rctMotorInterface 

Properties

.body : node : Read|Write 

Get/Set the rigid body to apply impulse to.

   

.angularSpeed : float : Read|Write 

Get/Set the target angular velocity that the motor will work to achieve for the rigid body. It is specified in radians per second.

   

.gain : float : Read|Write 

Get/Set the maximum angular impulse that the motor can apply to the rigid body in order to achieve the target velocity.

   

.axis : integer : Read|Write 

Get/Set the local axis for the rigid body about which the motor will apply impulses.

Possible values are:

0 - X axis

1 - Y axis

2 - Z axis

   

.isDisabled : boolean : Read|Write 

When set to true , the MotorHelper will not be considered by the simulation.

   

Methods

<boolean>GetIsValidMotor() 

Returns true if the MotorHelper is valid. A motor is valid if its rigid body property has been set to a valid rigid body in the scene.

   

<point3 by value>GetAxisInBodySpace() 

Returns the rotation axis in body space as point3 vector.

   

See Also