Difference between revisions of "B2.Joint"

From GiderosMobile
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' android, ios, mac, pc<br/>
+
<!-- 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/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
 
=== Description ===
 
=== Description ===
<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.
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 />{|-
+
=== Classes ===
| style="width: 50%;"|
+
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
 +
[[b2.DistanceJoint]]<br/>
 +
[[b2.FrictionJoint]]<br/>
 +
[[b2.GearJoint]]<br/>
 +
[[b2.MouseJoint]]<br/>
 +
[[b2.PrismaticJoint]]<br/>
 +
[[b2.PulleyJoint]]<br/>
 +
[[b2.RevoluteJoint]]<br/>
 +
[[b2.RopeJoint]]<br/>
 +
[[b2.WeldJoint]]<br/>
 +
[[b2.WheelJoint]]<br/>
 +
</div>
 +
 
 +
{|-
 +
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[b2.Joint:getAnchorA]] - returns the anchor point on bodyA in world coordinates<br/>
+
[[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-->
[[b2.Joint:getAnchorB]] - returns the anchor point on bodyB in world coordinates<br/>
+
[[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-->
[[b2.Joint:getBodyA]] - returns the first body attached to this joint<br/>
+
[[b2.Joint:getBodyA]] ''returns the first body attached to this joint''<br/><!--GIDEROSMTD:b2.Joint:getBodyA() returns the first body attached to this joint-->
[[b2.Joint:getBodyB]] - returns the second body attached to this joint<br/>
+
[[b2.Joint:getBodyB]] ''returns the second body attached to this joint''<br/><!--GIDEROSMTD:b2.Joint:getBodyB() returns the second body attached to this joint-->
[[b2.Joint:getReactionForce]] - returns the reaction force on bodyB at the joint anchor<br/>
+
[[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-->
[[b2.Joint:getReactionTorque]] - returns the reaction torque on bodyB<br/>
+
[[b2.Joint:getReactionTorque]] ''returns the reaction torque on bodyB''<br/><!--GIDEROSMTD:b2.Joint:getReactionTorque(inv_dt) returns the reaction torque on bodyB-->
[[b2.Joint:getType]] - returns a value that represents the type<br/>
+
[[b2.Joint:getType]] ''returns a value that represents the type''<br/><!--GIDEROSMTD:b2.Joint:getType() returns a value that represents the type-->
[[b2.Joint:isActive]] - is active?<br/>
+
[[b2.Joint:isActive]] ''is active?''<br/><!--GIDEROSMTD:b2.Joint:isActive() is active?-->
| style="width: 50%;"|
+
 
 +
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}
 +
 +
----
 +
*'''[[LiquidFun]]'''

Latest revision as of 01:50, 1 December 2023

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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.

Classes

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