Character Simulation
Posted: Fri Dec 07, 2007 3:41 pm
Hi! Here's something I've been thinking about.. I've been trying to put togeter a physics engine for a while, and i'd like to give it a try in games, so I was wondering..
How would one simulate a character? I can think how to do a ragdoll, or a vehicle.. but i suppose for a character walking around a world, as they usually do in games, and collide against stuff.. I'll definitely need to simulate it in some way. Simulating how a person walks or runs seems terribly complex to me, so I'm sure there must be some simplified way to simulate this...
I can imagine that the best way to simulate the character shape would be a pill or an ellipsoid , and have some sort of constrait to keep its foot aligned with the gravity vector applied to the object. I was also thinking that since it can't rotate in that axis, i should make it frictionless... Also, I was thinking that changing its direction simply means altering the linear velocity vector to face somewhere.... however I'm not sure if this is the best approach, what do you people think about this?
Also btw, I ported Erin Catto's Box2D Lite to 3D for learning myself.. would it be of use to anyone to learn? I could release it i guess if so.
How would one simulate a character? I can think how to do a ragdoll, or a vehicle.. but i suppose for a character walking around a world, as they usually do in games, and collide against stuff.. I'll definitely need to simulate it in some way. Simulating how a person walks or runs seems terribly complex to me, so I'm sure there must be some simplified way to simulate this...
I can imagine that the best way to simulate the character shape would be a pill or an ellipsoid , and have some sort of constrait to keep its foot aligned with the gravity vector applied to the object. I was also thinking that since it can't rotate in that axis, i should make it frictionless... Also, I was thinking that changing its direction simply means altering the linear velocity vector to face somewhere.... however I'm not sure if this is the best approach, what do you people think about this?
Also btw, I ported Erin Catto's Box2D Lite to 3D for learning myself.. would it be of use to anyone to learn? I could release it i guess if so.