So I now have a new problem that hopefully someone can help me with.
This doesn't happen for all dynamic bodies but for some rare cases, when I create a player (creates a body), the dynamic body falls because of gravity but hits no platforms/etc. Its collision detection is just gone completely. I've tested it out to make sure that it isn't being called and its not. I've set the body to not allow sleeping, set it to active, made sure it was dynamic, etc etc. It ends up falling and never stopping (the y coordinate in the world keeps increasing, tested).
So does anyone have any idea why a dynamic body could be in the world, have gravity, but not be able to detect collisions? Note: I make bodies through the same exact method and most of the time it works, these are rare occurrences but ones that need to be fixed. Any help would be so appreciated.
Thank you.
This doesn't happen for all dynamic bodies but for some rare cases, when I create a player (creates a body), the dynamic body falls because of gravity but hits no platforms/etc. Its collision detection is just gone completely. I've tested it out to make sure that it isn't being called and its not. I've set the body to not allow sleeping, set it to active, made sure it was dynamic, etc etc. It ends up falling and never stopping (the y coordinate in the world keeps increasing, tested).
So does anyone have any idea why a dynamic body could be in the world, have gravity, but not be able to detect collisions? Note: I make bodies through the same exact method and most of the time it works, these are rare occurrences but ones that need to be fixed. Any help would be so appreciated.
Thank you.