B2.WeldJoint: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
=== <translate>Examples</translate> === | === <translate>Examples</translate> === | ||
'''Weld joint''' | '''Weld joint''' | ||
< | <syntaxhighlight lang="lua"> | ||
local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100) | local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100) | ||
local weldJoint = world:createJoint(jointDef) | local weldJoint = world:createJoint(jointDef) | ||
</ | </syntaxhighlight> | ||
{|- | {|- | ||
Latest revision as of 13:27, 13 July 2023
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2011.6
Inherits from: b2.Joint
Description
A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate.
Examples
Weld joint
local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100)
local weldJoint = world:createJoint(jointDef)
Methodsb2.WeldJoint:getDampingRatio returns damping ratio |
EventsConstants |