To check whether your body is in rest or not you need to check whether the body->IsAwake() function returns true.IF yes then your body is at rest. Take a look at the following snippet.

b2Body *body;
       //Your body is awake, not in rest…
else {
       // Your body is in rest…..

Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.