Class b2ContactResult

This structure is used to report contact point results.

Index

Properties

Properties

public id: b2ContactID

The contact id identifies the features in contact.

public normal: b2Vec2

Points from shape1 to shape2.

public normalImpulse: number

The normal impulse applied to body2.

public position: b2Vec2

Position in world coordinates.

public shape1: b2Shape

The first shape.

public shape2: b2Shape

The second shape.

public tangentImpulse: number

The tangent impulse applied to body2.