|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | =Static Public Member Functions=
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointmotor |
− | | + | |
− | {{ScriptFunction|SJointMotor|New|(float targetVelocity, float force, bool freeSpin);|Creates a new SJointMotor with the given targetVelocity, force, freeSpin.||5=<pre>Motor= Space.Host.ExecutingObject.HingeJoint.Motor.New(1,2,true)</pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | | + | |
− | =Public Member Functions=
| + | |
− | {{ScriptFunction|string|ToString|();|Returns this SJointMotor's properties as a string||5=<pre>MotorString = Space.Host.ExecutingObject.HingeJoint.Motor.ToString()</pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | | + | |
− | =Properties=
| + | |
− | | + | |
− | {{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. |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>}}
| + | |
− | | + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 07:59, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointmotor