Options
All
  • Public
  • Public/Protected
  • All
Menu

This structure is used to report contact points.

Hierarchy

  • b2ContactPoint

Index

Constructors

Properties

friction: number

The combined friction coefficient.

The contact id identifies the features in contact.

normal: b2Vec2

Points from shape1 to shape2.

position: b2Vec2

Position in world coordinates.

restitution: number

The combined restitution coefficient.

separation: number

The separation is negative when shapes are touching.

shape1: b2Shape

The first shape.

shape2: b2Shape

The second shape.

velocity: b2Vec2

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

Generated using TypeDoc