Skip to content

Possible Bug??  #6126

@jcoppage

Description

@jcoppage

The below line of code does NOT produce an error. BUT it causes the physics system to not work properly while the game is running. Collisions between other game objects stop working properly, which have nothing to do with the light object.

this.energyBlastLight = this.scene.lights.addLight(this.x, this.y, 500, 0x037EFC, 5 );
this.scene.physics.world.enable(this.energyBlastLight) // <----- THIS LINE

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions