Table of Contents

Component Physics

(NOTE) Defines motor properties for a joint. Used to add energy to a joint. A motor defines a desired speed to move at as well as a max impulse that can be applied to reach that speed in a timestep. See each joint for a description of how it reacts to a motor.

Methods Properties Base Classes Derived Classes
Constructor Active component
AtomIds
MaxImpulse
Reverse
Speed

Properties


Active : boolean

Determines if this motor is currently active.

var Active : Boolean

AtomIds : integer

Signifies what atoms on the joint this affects. For internal use.

var AtomIds : Integer

MaxImpulse : real

The maximum impulse that the motor can apply each frame to reach the target speed.

var MaxImpulse : Real

Reverse : boolean

Determines if this motor should move in reverse. This is a convenient way to reverse a motor without having to negate the speed.

var Reverse : Boolean

Speed : real

The desired speed for this motor.

var Speed : Real

Methods


JointMotor : Void

constructor

Name Type Description
function JointMotor()