Skip to content

Commit b8710d7

Browse files
Removed unused local variables in Ninja.AABB.reportCollisionVsBody
1 parent e7356e0 commit b8710d7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/physics/ninja/AABB.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@ Phaser.Physics.Ninja.AABB.prototype = {
254254
*/
255255
reportCollisionVsBody: function (px, py, dx, dy, obj) {
256256

257-
var vx1 = this.pos.x - this.oldpos.x; // Calc velocity of this object
258-
var vy1 = this.pos.y - this.oldpos.y;
259-
var dp1 = (vx1 * dx + vy1 * dy); // Find component of velocity parallel to collision normal
260-
261257
// We only want to apply collision response forces if the object is travelling into, and not out of, the collision
262258
if (this.body.immovable && obj.body.immovable)
263259
{

0 commit comments

Comments
 (0)