``````

Box2D::b2PrismaticJoint - Provides one degree of freedom: translation
along an axis.

my \$joint = \$world->CreateJoint( \$joint_def );
\$joint->EnableMotor( 1 );
\$joint->SetMaxMotorForce( \$max_force );

A prismatic joint. This joint provides one degree of freedom:
translation along an axis fixed in body1. Relative rotation is
prevented. You can use a joint limit to restrict the range of motion
and a joint motor to drive the motion or to model joint friction.

Enable/disable the joint limit.

Parameters:

=over 4

=item * C<bool> C<\$flag>

=back

Enable/disable the joint motor.

Parameters:

=over 4

=item * C<bool> C<\$flag>

=back

Get the anchor point on bodyA in world coordinates. Implements
C<Box2D::b2Joint>.

Returns a C<Box2D::b2Vec2>

Get the anchor point on bodyB in world coordinates. Implements
C<Box2D::b2Joint>.

Returns a C<Box2D::b2Vec2>

Get the current joint translation speed, usually in meters per second.

Returns a C<float32>

Get the current joint translation, usually in meters.

Returns a C<float32>

Get the lower joint limit, usually in meters.

Returns a C<float32>

Get the current motor force, usually in N.

Returns a C<float32>

Get the motor speed, usually in meters per second.

Returns a C<float32>

Get the reaction force on body2 at the joint anchor in Newtons.
Implements C<Box2D::b2Joint>.

Parameters:

=over 4

=item * C<float32> C<\$inv_dt>

=back

Returns a C<Box2D::b2Vec2>

Get the reaction torque on body2 in N*m. Implements C<Box2D::b2Joint>.

Parameters:

=over 4

=item * C<float32> C<\$inv_dt>

=back

Returns a C<float32>

Get the upper joint limit, usually in meters.

Returns a C<float32>

Is the joint limit enabled?

Returns a C<bool>

Is the joint motor enabled?

Returns a C<bool>

Set the joint limits, usually in meters.

Parameters:

=over 4

=item * C<float32> C<\$lower>

=item * C<float32> C<\$upper>

=back

Set the maximum motor force, usually in N.

Parameters:

=over 4

=item * C<float32> C<\$force>

=back

Set the motor speed, usually in meters per second.

Parameters:

=over 4

=item * C<float32> C<\$speed>

=back

=over 4

=item * L<Box2D>

=item * L<Box2D::b2PrismaticJointDef>

=item * L<Box2D::b2Joint>

=item * L<Box2D::b2World>

=back