wiki.sine.space | sinespace

Difference between revisions of "Scripting/SJointLimits"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointlimits")
 
(4 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/sjointlimits
 
+
=Static Public Member Functions=
+
 
+
{{ScriptFunction|static SJointLimits|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></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>Space.Host.ExecutingObject.HingeJoint.Limits.Min = 0</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Max|{ get;set; }|The upper angular limit (in degrees) of the joint.
+
|5=<pre>Max= Space.Host.ExecutingObject.HingeJoint.Limits.Max = 0 </pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Bounciness|{ get;set; }|Determines the size of the bounce when the joint hits it's limit. Also known as restitution.|5=<pre>Space.Host.ExecutingObject.HingeJoint.Limits.Bounciness = 0</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|BounceMinVelocity|{ get;set; }|The minimum impact velocity which will cause the joint to bounce.|5=<pre> Space.Host.ExecutingObject.HingeJoint.Limits.BounceMinVelocity = 0</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|ContactDistance|{ get;set; }|Distance inside the limit value at which the limit will be considered to be active by the solver.|5=<pre>Space.Host.ExecutingObject.HingeJoint.Limits.ContactDistance= 0</pre>|6=<pre></pre>}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 07:58, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointlimits