Difference between revisions of "B2.Joint"

From GiderosMobile
Line 7: Line 7:
 
=== Description ===
 
=== 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.
 +
 +
=== <translate>Classes</translate> ===
 +
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
 +
[[Special:MyLanguage/b2.DistanceJoint|b2.DistanceJoint]]<br/>
 +
[[Special:MyLanguage/b2.FrictionJoint|b2.FrictionJoint]]<br/>
 +
[[Special:MyLanguage/b2.GearJoint|b2.GearJoint]]<br/>
 +
[[Special:MyLanguage/b2.MouseJoint|b2.MouseJoint]]<br/>
 +
[[Special:MyLanguage/b2.PrismaticJoint|b2.PrismaticJoint]]<br/>
 +
[[Special:MyLanguage/b2.PulleyJoint|b2.PulleyJoint]]<br/>
 +
[[Special:MyLanguage/b2.RevoluteJoint|b2.RevoluteJoint]]<br/>
 +
[[Special:MyLanguage/b2.RopeJoint|b2.RopeJoint]]<br/>
 +
[[Special:MyLanguage/b2.WeldJoint|b2.WeldJoint]]<br/>
 +
[[Special:MyLanguage/b2.WheelJoint|b2.WheelJoint]]<br/>
 +
</div>
  
 
{|-
 
{|-

Revision as of 15:04, 18 February 2020


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