B2.WeldJoint: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate. <br /> | A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate. <br /> | ||
<br /> | <br /> | ||
=== Examples === | |||
'''Weld joint'''<br/> | |||
<source lang="lua">local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100) | |||
local weldJoint = world:createJoint(jointDef)</source> | |||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
Revision as of 09:45, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
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 |