Tom Krueger Posted August 30, 2015 Share Posted August 30, 2015 I have an asteroid field dropping from top to bottom of screen. I decided to use oimo physics engine so that as asteroids collide they bounce and rotate. However, I want them to say on the same z position. Currently I have a star field image as the background and if the z position gets greater than zero the asteroids go behind the starfield image. I have tried to use updatePhysicsBodyPosition() so that I could set the z position on each frame but this method seems to update x and y as well which is not what I want. Question:How do I keep the z position constant when using oimo physics after two items collide? (I could be going about this completely wrong. Any thoughts on better design is appreciated as well.) Thanks,Tom Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.