Box2D::b2Joint - Base joint class.
# Don't use this class directly, use a subclass.
The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.
Get the anchor point on bodyA in world coordinates. Implemented in Box2D::b2DistanceJoint, Box2D::b2FrictionJoint, Box2D::b2GearJoint, Box2D::b2LineJoint, Box2D::b2MouseJoint, Box2D::b2PrismaticJoint, Box2D::b2PulleyJoint, Box2D::b2RevoluteJoint, and Box2D::b2WeldJoint.
Box2D::b2DistanceJoint
Box2D::b2FrictionJoint
Box2D::b2GearJoint
Box2D::b2LineJoint
Box2D::b2MouseJoint
Box2D::b2PrismaticJoint
Box2D::b2PulleyJoint
Box2D::b2RevoluteJoint
Box2D::b2WeldJoint
Returns a Box2D::b2Vec2
Box2D::b2Vec2
Get the anchor point on bodyB in world coordinates. Implemented in Box2D::b2DistanceJoint, Box2D::b2FrictionJoint, Box2D::b2GearJoint, Box2D::b2LineJoint, Box2D::b2MouseJoint, Box2D::b2PrismaticJoint, Box2D::b2PulleyJoint, Box2D::b2RevoluteJoint, and Box2D::b2WeldJoint.
Get the first body attached to this joint.
Returns a Box2D::b2Body
Box2D::b2Body
Get the second body attached to this joint.
Get the next joint the world joint list.
Returns a Box2D::b2Joint
Box2D::b2Joint
Get the reaction force on body2 at the joint anchor in Newtons. Implemented in Box2D::b2DistanceJoint, Box2D::b2FrictionJoint, Box2D::b2GearJoint, Box2D::b2LineJoint, Box2D::b2MouseJoint, Box2D::b2PrismaticJoint, Box2D::b2PulleyJoint, Box2D::b2RevoluteJoint, and Box2D::b2WeldJoint.
Parameters:
float32 $inv_dt
float32
$inv_dt
Get the reaction torque on body2 in N*m. Implemented in Box2D::b2DistanceJoint, Box2D::b2FrictionJoint, Box2D::b2GearJoint, Box2D::b2LineJoint, Box2D::b2MouseJoint, Box2D::b2PrismaticJoint, Box2D::b2PulleyJoint, Box2D::b2RevoluteJoint, and Box2D::b2WeldJoint.
Returns a float32
Get the type of the concrete joint.
Returns a Box2D::b2JointType
Box2D::b2JointType
Get the user data pointer.
Short-cut function to determine if either body is inactive.
Returns a bool
bool
Set the user data pointer.
scalar $data
scalar
$data
Box2D
Box2D::b2JointDef
See "BUGS" in Box2D
See "AUTHORS" in Box2D
See "COPYRIGHT & LICENSE" in Box2D
To install Box2D, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Box2D
CPAN shell
perl -MCPAN -e shell install Box2D
For more information on module installation, please visit the detailed CPAN module installation guide.