1 decade ago by Sledge
I have two somewhat stupid questions regarding the impact implementation of Box 2d. I apologize if these issues have been raised before...
1. How to I check if a box 2D entity is 'standing' (that is to say moving on a static surface) other than to check that the y velocity is zero? Is there a 'collides with tile' property or the equivalent in the Box 2D framework?
2. It is not clear to me from the documentation exactly where/how to implement the box2D world class. Does this go in the main.js file? Also, what is this cryptic AABB notation I see everywhere and why is it used?
Thanks!
1. How to I check if a box 2D entity is 'standing' (that is to say moving on a static surface) other than to check that the y velocity is zero? Is there a 'collides with tile' property or the equivalent in the Box 2D framework?
2. It is not clear to me from the documentation exactly where/how to implement the box2D world class. Does this go in the main.js file? Also, what is this cryptic AABB notation I see everywhere and why is it used?
Thanks!