Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by alexandre

Not sure how AABB works as I am trying to create an Impact+Box2D rig without using weltmeister and have run into problems:

- bodies do not move

AABB was defined in init like this:
var boundingBox = new b2.AABB ();
boundingBox.lowerBound.Set (0,0);
boundingBox.upperBound.Set (ig.system.width/2 * b2.SCALE, ig.system.height/2 * b2.SCALE);

When I change upperBounds to, say, 1000*1000, then the bodies can (and do) move.

1 decade ago by dominic

What do you want this Bounding Box to do? Do you want to set it as the world bounding box? Why is it only half the size of your screen?

1 decade ago by alexandre

I forgot that

- AABBs are there to help the Box2D engine define the limits of the simulated world,
- i.e., not to define its walls.

and so, was defining this the way I would define a b2body (half size values for w and h).

4 in the morning at the time. Now embarassed. Delete this post if you can.
Page 1 of 1
« first « previous next › last »