wiki.sine.space | sinespace

Difference between revisions of "Scripting/SJointMotor"

From wiki.sine.space
Jump to: navigation, search
(Created page with " =Static Public Member Functions= {{ScriptFunction|SJointMotor|New|(float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);|Creates a new SJ...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointmotor")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointmotor
 
+
=Static Public Member Functions=
+
 
+
{{ScriptFunction|SJointMotor|New|(float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);|Creates a new SJoinLimits with the given min, max, bounciness, bounceMinVelocity and contactDistance.||5=<pre>Limits = Space.Host.ExecutingObject.HingeJoint.Limits.New((1,2,3,4,5))</pre>|6=<pre></pre>}}
+
 
+
 
+
=Public Member Functions=
+
{{ScriptFunction|string|ToString|();|Returns this SJointLimits's properties as a string||5=<pre>LimitsString = Space.Host.ExecutingObject.HingeJoint.Limits.ToString()</pre>|6=<pre></pre>}}
+
 
+
 
+
=Properties=
+
 
+
{{ScriptFunction|float|Min|{ get;set; }|The lower angular limit (in degrees) of the joint.|5=<pre>LimitsMin = Space.Host.ExecutingObject.HingeJoint.Limits.Min</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Max|{ get;set; }|The upper angular limit (in degrees) of the joint.
+
|5=<pre>LimitsMax= Space.Host.ExecutingObject.HingeJoint.Limits.Max </pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Bool|{ get;set; }|Determines the size of the bounce when the joint hits it's limit. Also known as restitution.|5=<pre>LimitsBounciness = Space.Host.ExecutingObject.HingeJoint.Limits.Bounciness </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