BenginContact and EndContact can found collision with fixture sensor in my body, but Event.PRE_SOLVE and Event.POST_SOLVE can't do it, anyone can help me ?
@DungDajHjep why would you need to use pre_solve and not begin contact?
Pre and post solve are usually meant to manipulate or retrieve some collision data, like get the force of collision and not manage if the body's actually contacting.
But with sensor fixtures, there is no actual collision (body simply passes through)
So share more on what exactly you want to achieve?
@ar2rsawseen I simply want to perform a certain task repeatedly when something hit the sensor fixture, I know there are workarounds, I just thought it was a bug
Now I'm having trouble with performance issues when creating a racing game, with tiles map with size 14400 x 896 pixels, there are nearly 100 objects, with 4 players dynamic body and the rest are static body, I can reduce half of static body, but I do not think it's enough to create instability in fps, I will create 1 new thread and hope you help me
Comments
Pre and post solve are usually meant to manipulate or retrieve some collision data, like get the force of collision and not manage if the body's actually contacting.
But with sensor fixtures, there is no actual collision (body simply passes through)
So share more on what exactly you want to achieve?
I simply want to perform a certain task repeatedly when something hit the sensor fixture, I know there are workarounds, I just thought it was a bug
Now I'm having trouble with performance issues when creating a racing game, with tiles map with size 14400 x 896 pixels, there are nearly 100 objects, with 4 players dynamic body and the rest are static body, I can reduce half of static body, but I do not think it's enough to create instability in fps, I will create 1 new thread and hope you help me