Box2D::b2MouseJointDef - Mouse joint definition.
my $joint_def = Box2D::b2MouseJointDef->new(); $joint_def->bodyA( $body_a ); $joint_def->bodyB( $body_b ); $joint_def->target( $target ); $joint_def->maxForce( $max_force ); my $joint = $world->CreateJoint( $joint_def );
Mouse joint definition. This requires a world target point, tuning parameters, and the time step.
Default constructor.
Returns a Box2D::b2MouseJointDef
Box2D::b2MouseJointDef
The damping ratio. 0 = no damping, 1 = critical damping.
Parameters:
float32 $dampingRatio (optional)
float32
$dampingRatio
Returns a float32
The response speed.
float32 $frequencyHz (optional)
$frequencyHz
The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).
float32 $maxForce (optional)
$maxForce
The initial world target point. This is assumed to coincide with the body anchor initially.
Box2D::b2Vec2 $target (optional)
Box2D::b2Vec2
$target
Returns a Box2D::b2Vec2
Box2D
Box2D::b2MouseJoint
Box2D::b2JointDef
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.