
Box2D::b2DistanceJoint - Constrains two bodies at a fixed distance.

my $joint = $world->CreateJoint( $joint_def ); my $anchor_a = $joint->GetAnchorA(); my $anchor_b = $joint->GetAnchorB();

A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.

Get the anchor point on bodyA in world coordinates. Implements Box2D::b2Joint.
Returns a Box2D::b2Vec2
Get the anchor point on bodyB in world coordinates. Implements Box2D::b2Joint.
Returns a Box2D::b2Vec2
Returns a float32
Returns a float32
Returns a float32
Get the reaction force on body2 at the joint anchor in Newtons. Implements Box2D::b2Joint.
Parameters:
float32 $inv_dtReturns a Box2D::b2Vec2
Get the reaction torque on body2 in N*m. Implements Box2D::b2Joint.
Parameters:
float32 $inv_dtReturns a float32
Parameters:
float32 $ratioParameters:
float32 $hzSet/get the natural length. Manipulating the length can lead to non-physical behavior when the frequency is zero.
Parameters:
float32 $length

See "BUGS" in Box2D

