Skip to content

physics.enable on Sprite with child/Group give RangeError #21

@MauroMombelli

Description

@MauroMombelli

easy step to reproduce:

//create shadow
this.shadow = game.add.sprite(x, y, 'tank', 'shadow');
//then the tank body
this.tank = game.add.sprite(x, y, 'tank', 'tank1');
//attach shadow to tank, so they will move togheder
tank.addChild(shadow);
//now activate physics!
game.physics.enable(tank, Physics.ARCADE, false); // <-- it break the engine!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions