[SDL+Box2d]Character animating

Started by
0 comments, last by M2tM 13 years, 8 months ago
Hi guys,
i'm making a game "metal slug-style" using SDL as graphic engine and Box2D as physic engine, and i'm arrived at the creation of a class for the animations.
My question is:
what is the best way to animate a player?
My idea was to give the arms to the physic engine (attaching them to the weapon and the player body) but what for the legs?
Should i animate them in some way with the physic engine or is better to animate them in another way?

Roby
Advertisement
This is a pretty complex issue. You probably want to simplify your player collision geometry and animate independent of the physical environment, this will certainly be the easiest option.

Alternatively you could try to implement some kind of inverse kinematic blended animation system which takes the location of the ground into consideration when animating the legs.

Interesting article
_______________________"You're using a screwdriver to nail some glue to a ming vase. " -ToohrVyk

This topic is closed to new replies.

Advertisement