Module: physics/solvers/collision/impulse
Functions
calculateRelativeVelocity
โธ calculateRelativeVelocity(m
, contactA
, contactB
): vec2
Calculates the relative velocity for the impulse resolution of a collision between 2 CollisionObjects.
Parameters
Name | Type | Description |
---|---|---|
m | Manifold | The manifold of the collision between a and b |
contactA | vec2 | The contact point on a |
contactB | vec2 | The contact point on b |
Returns
vec2
Defined in
src/physics/solvers/collision/impulse.ts:93
solveImpulse
โธ solveImpulse(m
): void
Solves the impulse for a collision described by a Manifold.
Parameters
Name | Type | Description |
---|---|---|
m | Manifold | Manifold describing the collision to solve the impulse for |
Returns
void
Defined in
src/physics/solvers/collision/impulse.ts:17