[Not sure if this should or not be in Physics section]
What are you all ideas on how should a character be made?
as far as i have seen, there is only one: http://www.ogre3d.org/wiki/index.php/OgreOde_Walking_Character
Good size: Works.
Bad size: Won't work with models larger than taller. The ball would be taller than the model and there would be no Capsule(or Cylinder)
seens good to me, but here is the question: Why?
My idea of the structure is simpler[edit: and won't work on most games T.T], it's a Capsule(or Cylinder, whichever you preffer) that will contain the model, they both have the same size, and you won't spin it, you just :
speed.x = 0;
speed.y = character.getSphere().getLinearVelocity(null).y;
speed.z = 0;
Vector3f temp;
if (keyboard.isValidCommand("MoveRun")) {
temp = cam.getLeft().mult(50);
} else {
temp = cam.getLeft().mult(25);
}
if (keyboard.isValidCommand("MoveFoward") &&
!keyboard.isValidCommand("MoveBackward")) {
speed.x -= temp.z;
speed.z += temp.x;
}
if (keyboard.isValidCommand("MoveBackward") &&
!keyboard.isValidCommand("MoveFoward")) {
speed.x += temp.z / 2;
speed.z -= temp.x / 2;
}
if (keyboard.isValidCommand("MoveLeftBall")) {
speed.x += temp.x;
speed.z += temp.z;
}
if (keyboard.isValidCommand("MoveRightBall")) {
speed.x -= temp.x;
speed.z -= temp.z;
}
with this it will have instant acceleration and break, not good for most vehicle games, and you can move it on the air (simply fixable with "if(onGround) you can move;") but it's great for FPS and MMO's where your character don't realy need to slide in the terrain. neither it will rolldown ramps if you don't want it to ;D
(observe that you still have to fix the Capsule rotation, or it will fall just like OgreOde's one)
show me your ideas and compare with both or just one of those ideas i just shown now.
After some testing, found out that a square(or cylinder) that is forced to move will keep "jumping" as it go, and that i can't change the form of neither a sphere or capsule, it will always have the bigger X or Z as the radius and ignore the other value, so my system would not fit to models that are not as tall as large also. (unless of course, i make a square with whells)
After some more testing, if you jump and walk against a wall in the air you won't fall with my system.. and: no one else have any ideas?