First post i make, so hi everyone 🙂
I've been looking for a good AS3 physics engine solution with an API i didn't feel uncomfortable with, and Box2d seems to be it; simple, direct and to the point, and the results are wonderful. Thanks to those porting it to AS3, you just saved my ass on a project 🙂
My question is simple; is there a way to translate the whole world without iterating over every body in it and changing their positions? Say in an Asteroids-like game, where the player is centered and the world moves around the avatar, i'd like to apply an offset to the world as a whole and then a negative of that offset to the player avatar. In a sense what i'm trying to do is move the camera, not the world.
What's a good way to do this?
Cheers,
- Andreas SJ
I've been looking for a good AS3 physics engine solution with an API i didn't feel uncomfortable with, and Box2d seems to be it; simple, direct and to the point, and the results are wonderful. Thanks to those porting it to AS3, you just saved my ass on a project 🙂
My question is simple; is there a way to translate the whole world without iterating over every body in it and changing their positions? Say in an Asteroids-like game, where the player is centered and the world moves around the avatar, i'd like to apply an offset to the world as a whole and then a negative of that offset to the player avatar. In a sense what i'm trying to do is move the camera, not the world.
What's a good way to do this?
Cheers,
- Andreas SJ