Class b2ContactPoint

This structure is used to report contact points.

Index

Properties

Properties

public friction: number

The combined friction coefficient.

public id: b2ContactID

The contact id identifies the features in contact.

public normal: b2Vec2

Points from shape1 to shape2.

public position: b2Vec2

Position in world coordinates.

public restitution: number

The combined restitution coefficient.

public separation: number

The separation is negative when shapes are touching.

public shape1: b2Shape

The first shape.

public shape2: b2Shape

The second shape.

public velocity: b2Vec2

Velocity of point on body2 relative to point on body1 (pre-solver).