Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Box2D physics bodies not always destroyed when expected #101

@the2bears

Description

@the2bears

I'm not sure how serious this bug is, because there would usually be "something happening" on the screen.

However, Box2D physics bodies are destroyed when their respective entity is removed from entities in the update-physics! function. This is called from update-screen! which (I think) only gets called if something has changed.

I ran into a situation, during testing, where the entity is removed but no other changes needed to be rendered. The "bullet" in question disappeared as its entity was removed, but the physics body still rendered (due to a debug renderer) and still affected other bodies. Once I "moved" something on the screen, the above functions were triggered and the body was properly destroyed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions