Skip to content

Collisions and sleep #244

@EmperorPenguin18

Description

@EmperorPenguin18

Even though I never touch any sleep functions, when I run cpSpaceStep() after a collision, and it gets to line 223 of cpSpaceComponent.c which is this;

cpBool sleep = (space->sleepTimeThreshold != INFINITY);

somehow it gets set to 1. I've double checked and sleepTimeThreshold is infinity at this point.

The reason this is an issue at all is because later on during this Step it gets stuck in an infinite loop looking for arbiters. What's curious about this issue is it only happens for me when I do a Release build in cmake and then link statically. It also doesn't happen on Windows, just Linux and emscripten from my testing.

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