Box2D::b2FrictionJoint - Provides translational and angular friction.
my $joint = $world->CreateJoint( $joint_def ); $joint->SetMaxForce( $max_force ); $joint->SetMaxTorque( $max_torque );
Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.
Get the anchor point on bodyA in world coordinates. Implements Box2D::b2Joint.
Box2D::b2Joint
Returns a Box2D::b2Vec2
Box2D::b2Vec2
Get the anchor point on bodyB in world coordinates. Implements Box2D::b2Joint.
Get the maximum friction force in N.
Returns a float32
float32
Get the maximum friction torque in N*m.
Get the reaction force on body2 at the joint anchor in Newtons. Implements Box2D::b2Joint.
Parameters:
float32 $inv_dt
$inv_dt
Get the reaction torque on body2 in N*m. Implements Box2D::b2Joint.
Set the maximum friction force in N.
float32 $force
$force
Set the maximum friction torque in N*m.
float32 $torque
$torque
Box2D
Box2D::b2FrictionJointDef
Box2D::b2World
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.