Line 1: | Line 1: | ||
− | |||
− | |||
=Static Public Member Functions= | =Static Public Member Functions= | ||
Line 14: | Line 12: | ||
{{ScriptFunction|float|TargetVelocity|{ get;set; }|The motor will apply a force up to force to achieve targetVelocity.|5=<pre>MotorTargetVelocity = Space.Host.ExecutingObject.HingeJoint.Motor.TargetVelocity</pre>|6=<pre></pre>}} | {{ScriptFunction|float|TargetVelocity|{ get;set; }|The motor will apply a force up to force to achieve targetVelocity.|5=<pre>MotorTargetVelocity = Space.Host.ExecutingObject.HingeJoint.Motor.TargetVelocity</pre>|6=<pre></pre>}} | ||
− | {{ScriptFunction|float|Force|{ get;set; }|The motor will apply a force. | + | {{ScriptFunction|float|Force|{ get;set; }|The motor will apply a force. |5=<pre>MotorForce= Space.Host.ExecutingObject.HingeJoint.Motor.Force </pre>|6=<pre></pre>}} |
− | |5=<pre>MotorForce= Space.Host.ExecutingObject.HingeJoint.Motor.Force </pre>|6=<pre></pre>}} | + | |
{{ScriptFunction|bool|FreeSpin|{ get;set; }|If freeSpin is enabled the motor will only accelerate but never slow down.|5=<pre>MotorFreeSpin = Space.Host.ExecutingObject.HingeJoint.Motor.FreeSpin</pre>|6=<pre></pre>}} | {{ScriptFunction|bool|FreeSpin|{ get;set; }|If freeSpin is enabled the motor will only accelerate but never slow down.|5=<pre>MotorFreeSpin = Space.Host.ExecutingObject.HingeJoint.Motor.FreeSpin</pre>|6=<pre></pre>}} |
Creates a new SJointMotor with the given targetVelocity, force, freeSpin.
Motor= Space.Host.ExecutingObject.HingeJoint.Motor.New((1,2,true))
Returns this SJointMotor's properties as a string
MotorString = Space.Host.ExecutingObject.HingeJoint.Motor.ToString()
The motor will apply a force up to force to achieve targetVelocity.
MotorTargetVelocity = Space.Host.ExecutingObject.HingeJoint.Motor.TargetVelocity
The motor will apply a force.
MotorForce= Space.Host.ExecutingObject.HingeJoint.Motor.Force
If freeSpin is enabled the motor will only accelerate but never slow down.
MotorFreeSpin = Space.Host.ExecutingObject.HingeJoint.Motor.FreeSpin
|