Holds information about contact points, meant to be reused over multiple frames of contact

Hierarchy

  • ContactConstraintPoint

Constructors

Properties

aToContact: Vector = ...

Direction from center of mass of bodyA to contact point

bToContact: Vector = ...

Direction from center of mass of bodyB to contact point

local: Vector
normalImpulse: number = 0

Impulse accumulated over time in normal direction

normalMass: number = 0

Effective mass seen in the normal direction

originalVelocityAndRestitution: number = 0

Original contact velocity combined with bounciness

point: Vector
tangentImpulse: number = 0

Impulse accumulated over time in the tangent direction

tangentMass: number = 0

Effective mass seen in the tangent direction

Methods