Difference between revisions of "PulleyJoint:setMaxLengths"

m (1 revision: Importing from potato (again).)
(add detail)
Line 1: Line 1:
 +
== Function ==
 +
Set the maximum lengths of the rope segments.
  
 
+
The physics module also imposes maximum values for the rope segments. If the parameters exceed these values, the maximum values are set instead of the requested values.
== Function ==
 
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
PulleyJoint:setMaxLengths( )
+
PulleyJoint:setMaxLengths( max1, max2 )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None.
+
{{param|number|max1|The new maximum length of the first segment.}}
 +
{{param|number|max2|The new maximum length of the second segment.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 13: Line 15:
 
* [[parent::PulleyJoint]]
 
* [[parent::PulleyJoint]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Set the maximum lengths of the rope segments.}}

Revision as of 18:20, 6 March 2010

Function

Set the maximum lengths of the rope segments.

The physics module also imposes maximum values for the rope segments. If the parameters exceed these values, the maximum values are set instead of the requested values.

Synopsis

PulleyJoint:setMaxLengths( max1, max2 )

Arguments

number max1
The new maximum length of the first segment.
number max2
The new maximum length of the second segment.

Returns

Nothing.

See Also