B2.WeldJoint: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 3: Line 3:
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
<br />
<translate><br />
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 /></translate>
=== Examples ===
=== Examples ===
'''Weld joint'''<br/>
'''Weld joint'''<br/>

Revision as of 12: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)

Methods

b2.WeldJoint:getDampingRatio - returns damping ratio
b2.WeldJoint:getFrequency - returns frequency in Hz
b2.WeldJoint:setDampingRatio - sets damping ratio
b2.WeldJoint:setFrequency - sets frequency in Hz

Events

Constants