I'm developing a game using bullet for the physics logic, but rendering using my own isometric algorithm (sprites). I'm currently dealing with the issue of how the physics object of the player would work when they're standing and walking. Standing is easy enough, the model basically just looks like a rounded rectangle. Handling walking is more difficult.
I have a couple of options on how I can handle walking.
- Keep the object the same. However, problems arise when the sprite the player sees doesn't match the player's movement (e.g. the player's leg might appear to go 'into' a wall).
- Alternate between two objects, one standing, one with legs spread as far apart as they would when walking. So, at a certain point in the walking animation, the object would switch to the latter. However, if the player walks into a wall, they would constantly oscillate against the wall.
- Same as option 2 but have the object where the legs are spread apart active whenever the player walks. This removes the problem with option 2 (as the player would never touch the wall whilst standing), but this is a disadvantage in itself; the player would not be able to climb up walls (assuming I use a system where the player has to be touching said wall), for example.
I'm pretty stuck as to what other options are available, any ideas would be great.