Skip to content

assert setNeedToTestOverlap after modifying collisionbitmasks #429

Description

@InfantEudora

Hi. Thanks for this great and easy to use library.

I've recently upgraded from 0.9.0 to 0.10.2. And now noticed the following that I couldn't explain.

When I have a body with type::static with a dynamic body resting on top of it (with gravity): what I was previously able to do (in 0.9.0) was modify the static body to become dynamic. And they would both fall down as expected. The dynamic body would push the previously static body down.

In the new version, it crashes on the assert in OverlappingPairs::setNeedToTestOverlap().
The same happens when modifying the collision bitmasks while a body is currently in contact with another body.

It does work if I set the body to inactive first, then modify it's bits or type, and then set it to active all before running a new world update.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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