-
-
15 Apr 2018 06:15:26 UTC
- Distribution: Box2D
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (91)
- Testers (359 / 47 / 0)
- Kwalitee
Bus factor: 2- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (130.44KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Box2D::b2Joint - Base joint class.
SYNOPSIS
# Don't use this class directly, use a subclass.
DESCRIPTION
The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.
METHODS
GetAnchorA()
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
, andBox2D::b2WeldJoint
.Returns a
Box2D::b2Vec2
GetAnchorB()
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
, andBox2D::b2WeldJoint
.Returns a
Box2D::b2Vec2
GetBodyA()
Get the first body attached to this joint.
Returns a
Box2D::b2Body
GetBodyB()
Get the second body attached to this joint.
Returns a
Box2D::b2Body
GetNext()
Get the next joint the world joint list.
Returns a
Box2D::b2Joint
GetReactionForce( $inv_dt )
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
, andBox2D::b2WeldJoint
.Parameters:
float32
$inv_dt
Returns a
Box2D::b2Vec2
GetReactionTorque( $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
, andBox2D::b2WeldJoint
.Parameters:
float32
$inv_dt
Returns a
float32
GetType()
Get the type of the concrete joint.
Returns a
Box2D::b2JointType
GetUserData()
Get the user data pointer.
IsActive()
Short-cut function to determine if either body is inactive.
Returns a
bool
SetUserData( $data )
Set the user data pointer.
Parameters:
scalar
$data
SEE ALSO
BUGS
See "BUGS" in Box2D
AUTHORS
COPYRIGHT & LICENSE
Module Install Instructions
To install Box2D, copy and paste the appropriate command in to your terminal.
cpanm Box2D
perl -MCPAN -e shell install Box2D
For more information on module installation, please visit the detailed CPAN module installation guide.