CollisionManifold

CollisionManifold

new CollisionManifold(a, b)

Source:
Parameters:
Name Type Description
a T
b T

Classes

CollisionManifold

Members

contactData :CollisionData

Source:
Type:

entityA :T

Source:
Type:
  • T

entityB :T

Source:
Type:
  • T

impulse :Array.<number>

Source:
Type:
  • Array.<number>

kineticFriction :number

Source:
Type:
  • number

nJacobian :Array.<Jacobian>

Source:
Type:

nbias :Array.<number>

Source:
Type:
  • Array.<number>

restitution :number

Source:
Type:
  • number

staticFriction :number

Source:
Type:
  • number

tImpulse :Array.<number>

Source:
Type:
  • Array.<number>

tJacobian :Array.<Jacobian>

Source:
Type:

Methods

(static) applyImpulse(jacobian, movableA, movableB, bodyA, bodyB, lambda)

Source:
Parameters:
Name Type Description
jacobian Jacobian
movableA Movable
movableB Movable
bodyA Body2D
bodyB Body2D
lambda number

(static) prepare(manifold, movableA, movableB, bodyA, bodyB, positionA, positionB, inv_dt)

Source:
Parameters:
Name Type Description
manifold CollisionManifold.<T>
movableA Movable
movableB Movable
bodyA Body2D
bodyB Body2D
positionA Vector_like
positionB Vector_like
inv_dt number

(static) solve(manifold, movableA, movableB, bodyA, bodyB)

Source:
Parameters:
Name Type Description
manifold CollisionManifold.<T>
movableA Movable
movableB Movable
bodyA Body2D
bodyB Body2D

(static) warmstart(manifold, movableA, movableB, bodyA, bodyB)

Source:
Parameters:
Name Type Description
manifold CollisionManifold.<T>
movableA Movable
movableB Movable
bodyA Body2D
bodyB Body2D