new CollisionManifold(a, b)
Parameters:
Name | Type | Description |
---|---|---|
a |
T | |
b |
T |
Classes
Members
contactData :CollisionData
Type:
entityA :T
Type:
- T
entityB :T
Type:
- T
impulse :Array.<number>
Type:
- Array.<number>
kineticFriction :number
Type:
- number
nJacobian :Array.<Jacobian>
Type:
- Array.<Jacobian>
nbias :Array.<number>
Type:
- Array.<number>
restitution :number
Type:
- number
staticFriction :number
Type:
- number
tImpulse :Array.<number>
Type:
- Array.<number>
tJacobian :Array.<Jacobian>
Type:
- Array.<Jacobian>
Methods
(static) applyImpulse(jacobian, movableA, movableB, bodyA, bodyB, lambda)
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)
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)
Parameters:
Name | Type | Description |
---|---|---|
manifold |
CollisionManifold.<T> | |
movableA |
Movable | |
movableB |
Movable | |
bodyA |
Body2D | |
bodyB |
Body2D |
(static) warmstart(manifold, movableA, movableB, bodyA, bodyB)
Parameters:
Name | Type | Description |
---|---|---|
manifold |
CollisionManifold.<T> | |
movableA |
Movable | |
movableB |
Movable | |
bodyA |
Body2D | |
bodyB |
Body2D |