Options
All
  • Public
  • Public/Protected
  • All
Menu

This structure is used to report contact points.

Hierarchy

  • b2ContactPoint

Index

Constructors

constructor

Properties

friction

friction: number

The combined friction coefficient.

id

The contact id identifies the features in contact.

normal

normal: b2Vec2

Points from shape1 to shape2.

position

position: b2Vec2

Position in world coordinates.

restitution

restitution: number

The combined restitution coefficient.

separation

separation: number

The separation is negative when shapes are touching.

shape1

shape1: b2Shape

The first shape.

shape2

shape2: b2Shape

The second shape.

velocity

velocity: b2Vec2

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

Generated using TypeDoc