Difference between revisions of "B2.Joint"
From GiderosMobile
Line 2: | Line 2: | ||
<languages /> | <languages /> | ||
<!-- GIDEROSOBJ:b2.Joint --> | <!-- GIDEROSOBJ:b2.Joint --> | ||
− | ''' | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> |
− | ''' | + | '''Available since:''' Gideros 2011.6<br/> |
− | === | + | |
− | + | === Description === | |
− | The [[Special:MyLanguage/b2.Joint|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. | + | The [[Special:MyLanguage/b2.Joint|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. |
− | + | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
− | [[Special:MyLanguage/b2.Joint:getAnchorA|b2.Joint:getAnchorA]] '' | + | [[Special:MyLanguage/b2.Joint:getAnchorA|b2.Joint:getAnchorA]] ''returns the anchor point on bodyA in world coordinates''<br/><!-- GIDEROSMTD:b2.Joint:getAnchorA() returns the anchor point on bodyA in world coordinates --> |
− | [[Special:MyLanguage/b2.Joint:getAnchorB|b2.Joint:getAnchorB]] '' | + | [[Special:MyLanguage/b2.Joint:getAnchorB|b2.Joint:getAnchorB]] ''returns the anchor point on bodyB in world coordinates''<br/><!-- GIDEROSMTD:b2.Joint:getAnchorB() returns the anchor point on bodyB in world coordinates --> |
− | [[Special:MyLanguage/b2.Joint:getBodyA|b2.Joint:getBodyA]] '' | + | [[Special:MyLanguage/b2.Joint:getBodyA|b2.Joint:getBodyA]] ''returns the first body attached to this joint''<br/><!-- GIDEROSMTD:b2.Joint:getBodyA() returns the first body attached to this joint --> |
− | [[Special:MyLanguage/b2.Joint:getBodyB|b2.Joint:getBodyB]] '' | + | [[Special:MyLanguage/b2.Joint:getBodyB|b2.Joint:getBodyB]] ''returns the second body attached to this joint''<br/><!-- GIDEROSMTD:b2.Joint:getBodyB() returns the second body attached to this joint --> |
− | [[Special:MyLanguage/b2.Joint:getReactionForce|b2.Joint:getReactionForce]] '' | + | [[Special:MyLanguage/b2.Joint:getReactionForce|b2.Joint:getReactionForce]] ''returns the reaction force on bodyB at the joint anchor''<br/><!-- GIDEROSMTD:b2.Joint:getReactionForce(inv_dt) returns the reaction force on bodyB at the joint anchor --> |
− | [[Special:MyLanguage/b2.Joint:getReactionTorque|b2.Joint:getReactionTorque]] '' | + | [[Special:MyLanguage/b2.Joint:getReactionTorque|b2.Joint:getReactionTorque]] ''returns the reaction torque on bodyB''<br/><!-- GIDEROSMTD:b2.Joint:getReactionTorque(inv_dt) returns the reaction torque on bodyB --> |
− | [[Special:MyLanguage/b2.Joint:getType|b2.Joint:getType]] '' | + | [[Special:MyLanguage/b2.Joint:getType|b2.Joint:getType]] ''returns a value that represents the type''<br/><!-- GIDEROSMTD:b2.Joint:getType() returns a value that represents the type --> |
− | [[Special:MyLanguage/b2.Joint:isActive|b2.Joint:isActive]] '' | + | [[Special:MyLanguage/b2.Joint:isActive|b2.Joint:isActive]] ''is active?''<br/><!-- GIDEROSMTD:b2.Joint:isActive() is active? --> |
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
|} | |} | ||
+ | |||
+ | ---- | ||
+ | *'''[[LiquidFun]]''' |
Revision as of 17:44, 17 February 2020
Supported platforms:
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.
Methodsb2.Joint:getAnchorA returns the anchor point on bodyA in world coordinates |
EventsConstants |