Hello! I'm hoping using Box2d to write a game. Although I'm just messing around with the examples at the moment, so I'm a bit green. Can someone tell me the technique of how to do this? (if it is possible).
I have already written a simple 2d platform game in Bmax, and I have the main character moving around how I like. I would like to convert this to box2D so his movement is the same (ie not using true physics but setting his movement manually each frame). All the other objects in this game would operate under physics and therefore would need to be moved by him. I would like the main character to just push everything out of the way. So his movement is never interrupted or slowed in any way, by an object. He would however of course be stopped by a wall or when he can't push an object because it is against a wall. He can also jump on to and off objects.
I was thinking this could maybe be done by using the SetPosition command every frame and by giving my main character a large density I don't know if this would work though, because wouldn't the DoStep command then alter his position?
Please help. Thank you!
I have already written a simple 2d platform game in Bmax, and I have the main character moving around how I like. I would like to convert this to box2D so his movement is the same (ie not using true physics but setting his movement manually each frame). All the other objects in this game would operate under physics and therefore would need to be moved by him. I would like the main character to just push everything out of the way. So his movement is never interrupted or slowed in any way, by an object. He would however of course be stopped by a wall or when he can't push an object because it is against a wall. He can also jump on to and off objects.
I was thinking this could maybe be done by using the SetPosition command every frame and by giving my main character a large density I don't know if this would work though, because wouldn't the DoStep command then alter his position?
Please help. Thank you!