Jump to content
  • Advertisement
Sign in to follow this  
roby65

[SDL+Box2d]Character animating

This topic is 3037 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!