B2.Joint: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> The `b2.Joint` class is the base joint class. Joints are used..."
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Supported platforms:''' <br/>
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
Line 6: Line 6:
The `b2.Joint` class is the base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors. <br />
The `b2.Joint` class is the base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors. <br />
<br />
<br />
 
 
 
 
 
 
 
 
 
 
 
 
{|-
{|-
| style="width: 50%;"|
| style="width: 50%;"|
=== Methods ===
=== Methods ===
[[b2.Joint:getAnchorA]] - returns the anchor point on bodyA in world coordinates<br/>
[[b2.Joint:getAnchorB]] - returns the anchor point on bodyB in world coordinates<br/>
[[b2.Joint:getBodyA]] - returns the first body attached to this joint<br/>
[[b2.Joint:getBodyB]] - returns the second body attached to this joint<br/>
[[b2.Joint:getReactionForce]] - returns the reaction force on bodyB at the joint anchor<br/>
[[b2.Joint:getReactionTorque]] - returns the reaction torque on bodyB<br/>
[[b2.Joint:getType]] - returns a value that represents the type<br/>
[[b2.Joint:isActive]] - is active?<br/>
| style="width: 50%;"|
| style="width: 50%;"|
=== Events ===
=== Events ===
=== Constants ===
=== Constants ===
|}
|}

Revision as of 07:58, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


The `b2.Joint` class is the base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.







Methods

b2.Joint:getAnchorA - returns the anchor point on bodyA in world coordinates
b2.Joint:getAnchorB - returns the anchor point on bodyB in world coordinates
b2.Joint:getBodyA - returns the first body attached to this joint
b2.Joint:getBodyB - returns the second body attached to this joint
b2.Joint:getReactionForce - returns the reaction force on bodyB at the joint anchor
b2.Joint:getReactionTorque - returns the reaction torque on bodyB
b2.Joint:getType - returns a value that represents the type
b2.Joint:isActive - is active?

Events

Constants