Difference between revisions of "PulleyJoint:setMaxLengths"

m (1 revision: Importing from potato (again).)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
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 ==
 
== 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.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|PulleyJoint:setMaxLengths}}

Latest revision as of 17:29, 25 March 2011

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

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


Other Languages