B2.WeldJoint

From GiderosMobile
Revision as of 14:19, 23 August 2018 by Hgy29 (talk | contribs)

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 Template:Returns damping ratio
b2.WeldJoint:getFrequency Template:Returns frequency in Hz
b2.WeldJoint:setDampingRatio Template:Sets damping ratio
b2.WeldJoint:setFrequency Template:Sets frequency in Hz

Events

Constants