Jeffrey T. Palmer > Box2D > Box2D::b2WeldJointDef

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Box2D::b2WeldJointDef - Weld joint definition.

SYNOPSIS ^

  my $joint_def = Box2D::b2WeldJointDef->new();
  $joint_def->Initialize( $body1, $body2, $anchor );
  my $joint = $world->CreateJoint( $joint_def );

DESCRIPTION ^

Weld joint definition. You need to specify local anchor points where they are attached and the relative body angle. The position of the anchor points is important for computing the reaction torque.

METHODS ^

new()

Default constructor.

Returns a Box2D::b2WeldJointDef

Initialize( $body1, $body2, $anchor )

Initialize the bodies, anchors, and reference angle using a world anchor point.

Parameters:

localAnchorA()

localAnchorA( $localAnchorA )

The local anchor point relative to body1's origin.

Parameters:

Returns a Box2D::b2Vec2

localAnchorB()

localAnchorB( $localAnchorB )

The local anchor point relative to body2's origin.

Parameters:

Returns a Box2D::b2Vec2

referenceAngle()

referenceAngle( $referenceAngle )

The body2 angle minus body1 angle in the reference state (radians).

Parameters:

Returns a float32

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: