Difference between revisions of "B2.WeldJoint"

From GiderosMobile
Line 2: Line 2:
 
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><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 /></translate>
 
<br /></translate>
=== Examples ===
+
=== <translate>Examples</translate> ===
 
'''Weld joint'''<br/>
 
'''Weld joint'''<br/>
 
<source lang="lua">local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100)
 
<source lang="lua">local jointDef = b2.createWeldJointDef(body1, body2, 100, 100, 130, 100)
Line 12: Line 12:
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Methods ===
+
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/b2.WeldJoint:getDampingRatio|b2.WeldJoint:getDampingRatio]] ''<translate>returns damping ratio</translate>''<br/>
 
[[Special:MyLanguage/b2.WeldJoint:getDampingRatio|b2.WeldJoint:getDampingRatio]] ''<translate>returns damping ratio</translate>''<br/>
 
[[Special:MyLanguage/b2.WeldJoint:getFrequency|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/>
Line 18: Line 18:
 
[[Special:MyLanguage/b2.WeldJoint:setFrequency|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 ===
+
=== <translate>Events</translate> ===
=== Constants ===
+
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 08:28, 24 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