++ed by:
GARU

1 PAUSE user(s)
1 non-PAUSE user(s).

Jeffrey T. Palmer
and 1 contributors

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