Difference between revisions of "love.physics.newWeldJoint"
(Created page with "{{newin|0.8.0|080|type=function}} Create a friction joint between two bodies. A WeldJoint essentially glues two bodies together. == Function == === Synopsis === <source lang...") |
m |
||
Line 12: | Line 12: | ||
{{param|number|x|The x position of the anchor point.}} | {{param|number|x|The x position of the anchor point.}} | ||
{{param|number|y|The y position of the anchor point.}} | {{param|number|y|The y position of the anchor point.}} | ||
− | {{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with | + | {{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}} |
=== Returns === | === Returns === | ||
{{param|WeldJoint|joint|The new WeldJoint.}} | {{param|WeldJoint|joint|The new WeldJoint.}} |
Revision as of 13:15, 9 April 2012
Available since LÖVE 0.8.0 |
This function is not supported in earlier versions. |
Create a friction joint between two bodies. A WeldJoint essentially glues two bodies together.
Function
Synopsis
joint = love.physics.newWeldJoint( body1, body2, x, y, collideConnected )
Arguments
Body body1
- The first body to attach to the joint.
Body body2
- The second body to attach to the joint.
number x
- The x position of the anchor point.
number y
- The y position of the anchor point.
boolean collideConnected (false)
- Specifies whether the two bodies should collide with each other.
Returns
WeldJoint joint
- The new WeldJoint.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info