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

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Box2D::b2Manifold - Manifold for two touching convex shapes.

SYNOPSIS ^

  my $manifold = $contact->GetManifold();
  my $normal = $manifold->localNormal();
  my $point = $manifold->localPoint();

DESCRIPTION ^

A manifold for two touching convex shapes.

Box2D supports multiple types of contact:

The local point usage depends on the manifold type:

Similarly the local normal usage:

We store contacts in this way so that position correction can account for movement, which is critical for continuous physics. All contact scenarios must be expressed in one of these types. This structure is stored across time steps, so we keep it small.

METHODS ^

new()

Default constructor.

localNormal()

localNormal( $localNormal )

not use for Type::e_points

Parameters:

Returns a Box2D::b2Vec2

localPoint()

localPoint( $localPoint )

usage depends on manifold type

Parameters:

Returns a Box2D::b2Vec2

pointCount()

pointCount( $pointCount )

the number of manifold points

Parameters:

Returns a int32

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: