Skip to content

Commit 99cd025

Browse files
committed
Spelling mistake fix.
1 parent d41286b commit 99cd025

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ one set of bindings ever created, which makes things a lot cleaner.
301301
* The `loadcomplete` event emitted by the Loader Plugin has been renamed to `postprocess` to be reflect what it's used for.
302302
* Game Objects used to emit a `collide` event if they had an Arcade Physics Body with `onCollide` set, that collided with a Tile. This has changed. The event has been renamed to `tilecollide`. You should now listen for this event from the Arcade Physics World itself: `this.physics.world.on('tilecollide')`. The Game Object will not emit the event any more.
303303
* Game Objects used to emit a `overlap` event if they had an Arcade Physics Body with `onOverlap` set, that overlapped with a Tile. This has changed. The event has been renamed to `tileoverlap`. You should now listen for this event from the Arcade Physics World itself: `this.physics.world.on('tileoverlap')`. The Game Object will not emit the event any more.
304+
* The function `Phaser.Physics.Impact.SeperateX` has been renamed to `SeparateX` to correct the spelling mistake.
305+
* The function `Phaser.Physics.Impact.SeperateY` has been renamed to `SeparateY` to correct the spelling mistake.
304306

305307
### Examples and TypeScript
306308

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
/**
88
* [description]
99
*
10-
* @function Phaser.Physics.Impact.SeperateX
10+
* @function Phaser.Physics.Impact.SeparateX
1111
* @since 3.0.0
1212
*
1313
* @param {Phaser.Physics.Impact.World} world - [description]
1414
* @param {Phaser.Physics.Impact.Body} left - [description]
1515
* @param {Phaser.Physics.Impact.Body} right - [description]
1616
* @param {Phaser.Physics.Impact.Body} [weak] - [description]
1717
*/
18-
var SeperateX = function (world, left, right, weak)
18+
var SeparateX = function (world, left, right, weak)
1919
{
2020
var nudge = left.pos.x + left.size.x - right.pos.x;
2121

@@ -47,4 +47,4 @@ var SeperateX = function (world, left, right, weak)
4747
}
4848
};
4949

50-
module.exports = SeperateX;
50+
module.exports = SeparateX;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
/**
88
* [description]
99
*
10-
* @function Phaser.Physics.Impact.SeperateY
10+
* @function Phaser.Physics.Impact.SeparateY
1111
* @since 3.0.0
1212
*
1313
* @param {Phaser.Physics.Impact.World} world - [description]
1414
* @param {Phaser.Physics.Impact.Body} top - [description]
1515
* @param {Phaser.Physics.Impact.Body} bottom - [description]
1616
* @param {Phaser.Physics.Impact.Body} [weak] - [description]
1717
*/
18-
var SeperateY = function (world, top, bottom, weak)
18+
var SeparateY = function (world, top, bottom, weak)
1919
{
2020
var nudge = (top.pos.y + top.size.y - bottom.pos.y);
2121
var nudgeX;
@@ -76,4 +76,4 @@ var SeperateY = function (world, top, bottom, weak)
7676
}
7777
};
7878

79-
module.exports = SeperateY;
79+
module.exports = SeparateY;

src/physics/impact/Solver.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
var COLLIDES = require('./COLLIDES');
88
var Events = require('./events');
9-
var SeperateX = require('./SeperateX');
10-
var SeperateY = require('./SeperateY');
9+
var SeparateX = require('./SeparateX');
10+
var SeparateY = require('./SeparateY');
1111

1212
/**
1313
* Impact Physics Solver
@@ -37,11 +37,11 @@ var Solver = function (world, bodyA, bodyB)
3737
{
3838
if (bodyA.last.y < bodyB.last.y)
3939
{
40-
SeperateY(world, bodyA, bodyB, weak);
40+
SeparateY(world, bodyA, bodyB, weak);
4141
}
4242
else
4343
{
44-
SeperateY(world, bodyB, bodyA, weak);
44+
SeparateY(world, bodyB, bodyA, weak);
4545
}
4646

4747
bodyA.collideWith(bodyB, 'y');
@@ -53,11 +53,11 @@ var Solver = function (world, bodyA, bodyB)
5353
{
5454
if (bodyA.last.x < bodyB.last.x)
5555
{
56-
SeperateX(world, bodyA, bodyB, weak);
56+
SeparateX(world, bodyA, bodyB, weak);
5757
}
5858
else
5959
{
60-
SeperateX(world, bodyB, bodyA, weak);
60+
SeparateX(world, bodyB, bodyA, weak);
6161
}
6262

6363
bodyA.collideWith(bodyB, 'x');

0 commit comments

Comments
 (0)