Difference between revisions of "B2.WeldJoint"
From GiderosMobile
Line 13: | Line 13: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | [[b2.WeldJoint:getDampingRatio]] ''<translate>returns damping ratio</translate>''<br/> | + | [[Special:MyLanguage/b2.WeldJoint:getDampingRatio|b2.WeldJoint:getDampingRatio]] ''<translate>returns damping ratio</translate>''<br/> |
− | [[b2.WeldJoint:getFrequency]] ''<translate>returns frequency in Hz</translate>''<br/> | + | [[Special:MyLanguage/b2.WeldJoint:getFrequency|b2.WeldJoint:getFrequency]] ''<translate>returns frequency in Hz</translate>''<br/> |
− | [[b2.WeldJoint:setDampingRatio]] ''<translate>sets damping ratio</translate>''<br/> | + | [[Special:MyLanguage/b2.WeldJoint:setDampingRatio|b2.WeldJoint:setDampingRatio]] ''<translate>sets damping ratio</translate>''<br/> |
− | [[b2.WeldJoint:setFrequency]] ''<translate>sets frequency in Hz</translate>''<br/> | + | [[Special:MyLanguage/b2.WeldJoint:setFrequency|b2.WeldJoint:setFrequency]] ''<translate>sets frequency in Hz</translate>''<br/> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 16:34, 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 |