Difference between revisions of "PulleyJoint:setConstant"

m (1 revision: Imported docs from potato.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
Set the total length of the rope.
  
 
+
Setting a new length for the rope updates the maximum length values of the joint.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
PulleyJoint:setConstant( )
+
PulleyJoint:setConstant( length )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None.
+
{{param|number|length|The new length of the rope in the joint.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
 
* [[parent::PulleyJoint]]
 
* [[parent::PulleyJoint]]
 +
* [[PulleyJoint:getMaxLengths]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Set the total length of the rope.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|PulleyJoint:setConstant}}

Latest revision as of 17:29, 25 March 2011

Set the total length of the rope.

Setting a new length for the rope updates the maximum length values of the joint.

Function

Synopsis

PulleyJoint:setConstant( length )

Arguments

number length
The new length of the rope in the joint.

Returns

Nothing.

See Also


Other Languages