Jeffrey T. Palmer > Box2D-0.07 > Box2D::b2JointDef

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

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:

Returns a Box2D::b2Body*

bodyB()

bodyB( $bodyB )

The second attached body.

Parameters:

Returns a Box2D::b2Body*

collideConnected()

collideConnected( $collideConnected )

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

Parameters:

Returns a bool

type()

type( $type )

The joint type is set automatically for concrete joint types.

Parameters:

Returns a Box2D::b2JointType

userData()

userData( $userData )

Use this to attach application specific data to your joints.

Parameters:

Returns a scalar

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: