Character Rotation

cgarib

16-11-2009 21:03:26

Hi, im having problems rotating my characters with newton. I'm doing this:

Vector3 diretion = (heading - node.WorldPosition).NormalisedCopy;
Vector3 dirActual = Body.Orientation * initDirection;
float yaw = dirActual.GetRotationTo(direccion).Yaw.ValueRadians*velRotation / MyOgreWindow.NEWTON_FRAMERATE;
Body.Omega = new Vector3(0, yaw, 0);

Before it worked fine, but suddenly my characters started to rotate in circles. Please Help!!!!!

prchakal

18-11-2009 05:01:40

I jhave this same question, how to walk based on player orientation (direction)?