isResting returns false always

I want to check whether body stopped or not using this;

auto checkisResting = sprite->getPhysicsBody()->isResting();

but it returns false for unmoving objects.

How can I check body is not moving? Thanks

I solved this problem by using getVelocity. If returned Vec2 x,y values of abs() values both near 0.00 its stopped

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.

Shouldn’t it return false for moving objects? because they are NOT resting.

What am I mis-understanding here?

moving or not it returns false for all

I will test this so we can open a GitHub issue if needed.

thank you.