The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Box2D::b2JointDef - Used to construct joints.

SYNOPSIS

  # Don't use this class directly, use a subclass.

DESCRIPTION

Joint definitions are used to construct joints.

METHODS

new()

Default constructor.

bodyA()

bodyA( $bodyA )

The first attached body.

Parameters:

  • Box2D::b2Body* $bodyA (optional)

Returns a Box2D::b2Body*

bodyB()

bodyB( $bodyB )

The second attached body.

Parameters:

  • Box2D::b2Body* $bodyB (optional)

Returns a Box2D::b2Body*

collideConnected()

collideConnected( $collideConnected )

Set this flag to true if the attached bodies should collide.

Parameters:

  • bool $collideConnected (optional)

Returns a bool

type()

type( $type )

The joint type is set automatically for concrete joint types.

Parameters:

  • Box2D::b2JointType $type (optional)

Returns a Box2D::b2JointType

userData()

userData( $userData )

Use this to attach application specific data to your joints.

Parameters:

  • scalar $userData (optional)

Returns a scalar

SEE ALSO

BUGS

See "BUGS" in Box2D

AUTHORS

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE

See "COPYRIGHT & LICENSE" in Box2D