ContactConstraintPoint
Index
Constructors
constructor
Parameters
point: Vector
local: Vector
contact: CollisionContact
Returns ContactConstraintPoint
Properties
publicaToContact
Direction from center of mass of bodyA to contact point
publicbToContact
Direction from center of mass of bodyB to contact point
publiccontact
publiclocal
publicnormalImpulse
Impulse accumulated over time in normal direction
publicnormalMass
Effective mass seen in the normal direction
publicoriginalVelocityAndRestitution
Original contact velocity combined with bounciness
publicpoint
publictangentImpulse
Impulse accumulated over time in the tangent direction
publictangentMass
Effective mass seen in the tangent direction
Methods
publicgetRelativeVelocity
Returns the relative velocity between bodyA and bodyB
Returns Vector
update
Updates the contact information
Returns ContactConstraintPoint
Holds information about contact points, meant to be reused over multiple frames of contact