Skip to main content

ContactConstraintPoint

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

Index

Constructors

constructor

Properties

publicaToContact

aToContact: Vector = ...

Direction from center of mass of bodyA to contact point

publicbToContact

bToContact: Vector = ...

Direction from center of mass of bodyB to contact point

publiccontact

publiclocal

local: Vector

publicnormalImpulse

normalImpulse: number = 0

Impulse accumulated over time in normal direction

publicnormalMass

normalMass: number = 0

Effective mass seen in the normal direction

publicoriginalVelocityAndRestitution

originalVelocityAndRestitution: number = 0

Original contact velocity combined with bounciness

publicpoint

point: Vector

publictangentImpulse

tangentImpulse: number = 0

Impulse accumulated over time in the tangent direction

publictangentMass

tangentMass: number = 0

Effective mass seen in the tangent direction

Methods

publicgetRelativeVelocity

  • Returns the relative velocity between bodyA and bodyB


    Returns Vector

update