Skip to content

Commit adf7e39

Browse files
committed
These objects no longer make their own bodies, it's left up to the Group or Factory classes.
1 parent 39a4525 commit adf7e39

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

v3/src/physics/arcade/ArcadeImage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ var ArcadeImage = new Class({
2323
initialize:
2424

2525
// x/y is the center of the Image / Body, just like other default Game Objects
26-
function ArcadeImage (scene, bodyType, x, y, texture, frame)
26+
// This needs a body adding to it, so create it via the AP Factory, or add it to an AP Group
27+
28+
function ArcadeImage (scene, x, y, texture, frame)
2729
{
2830
Image.call(this, scene, x, y, texture, frame);
29-
30-
scene.sys.physicsManager.world.enableBody(this, bodyType);
3131
}
3232

3333
});

v3/src/physics/arcade/ArcadeSprite.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ var ArcadeSprite = new Class({
2323
initialize:
2424

2525
// x/y is the center of the Sprite / Body, just like other default Game Objects
26-
function ArcadeSprite (scene, bodyType, x, y, texture, frame)
26+
// This needs a body adding to it, so create it via the AP Factory, or add it to an AP Group
27+
28+
function ArcadeSprite (scene, x, y, texture, frame)
2729
{
2830
Sprite.call(this, scene, x, y, texture, frame);
29-
30-
scene.sys.physicsManager.world.enableBody(this, bodyType);
3131
}
3232

3333
});

0 commit comments

Comments
 (0)