wiki.sine.space | sinespace

Difference between revisions of "Scripting/SJointSpring"

From wiki.sine.space
Jump to: navigation, search
(Created page with "=Static Public Member Functions= {{ScriptFunction|SJointSpring|New|(float spring, float damper, float targetPosition);|Creates a new SJointSpring with the given spring, dampe...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sjointspring")
 
(5 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/sjointspring
 
+
{{ScriptFunction|SJointSpring|New|(float spring, float damper, float targetPosition);|Creates a new SJointSpring with the given spring, damper, targetPosition.||5=<pre>Motor= Space.Host.ExecutingObject.HingeJoint.Spring.New(1,2,3)</pre>|6=<pre></pre>}}
+
 
+
 
+
=Public Member Functions=
+
{{ScriptFunction|string|ToString|();|Returns this SJointSpring's properties as a string||5=<pre>SpringString = Space.Host.ExecutingObject.HingeJoint.Spring.ToString()</pre>|6=<pre></pre>}}
+
 
+
 
+
=Properties=
+
 
+
{{ScriptFunction|float|Spring|{ get;set; }|The spring forces used to reach the target position.|5=<pre>SpringSpring= Space.Host.ExecutingObject.HingeJoint.Spring.Spring</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Damper|{ get;set; }|The damper force uses to dampen the spring.|5=<pre>SpringDamper= Space.Host.ExecutingObject.HingeJoint.Spring.Damper</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|float|TargetPosition|{ get;set; }|The target position the joint attempts to reach.|5=<pre>SpringTargetPosition = Space.Host.ExecutingObject.HingeJoint.Spring.TargetPosition</pre>|6=<pre></pre>}}
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 08:00, 19 September 2022

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