Class b2WorldManifold

This is used to compute the current state of a contact manifold.

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): b2WorldManifold

Creates a new b2WorldManifold.

Returns

b2WorldManifold

Properties

public m_normal: b2Vec2

World vector pointing from A to B.

public m_points: b2Vec2[]

World contact point (point of intersection).

Methods

public Initialize(manifold: b2Manifold, xfA: b2Transform, radiusA: number, xfB: b2Transform, radiusB: number)

Evaluate the manifold with supplied transforms. This assumes modest motion from the original state. This does not change the point count, impulses, etc. The radii must come from the shapes that generated the manifold.

Parameters