reportCollisionVsBody(px, py, dx, dy, obj)
Process a body collision and apply the resulting forces. Still very much WIP and doesn't work fully. Feel free to fix!
Parameters
Name | Type | Description |
---|---|---|
px | number | The tangent velocity |
py | number | The tangent velocity |
dx | number | Collision normal |
dy | number | Collision normal |
obj | number | Object this AABB collided with |
- Source code: physics/ninja/AABB.js (Line 248)
Please login to continue.