grizzley90
03-02-2007 14:40:04
I have a tank... and im using the vehicule class.
I registered 6 wheels with 2 steering. The body is constructed from a convex hull. The tank however moves ridiculously slow.. this is the torque setting part.
I dont know how to fix it... It moves way to slow.
I registered 6 wheels with 2 steering. The body is constructed from a convex hull. The tank however moves ridiculously slow.. this is the torque setting part.
Degree steering = new Degree(0);
float torque = 0.0f;
if (Manager.Instance.Input.KeyboardMouseInput.IsKeyPressed(KeyCodes.I))
torque = -10000.0f;
if (Manager.Instance.Input.KeyboardMouseInput.IsKeyPressed(KeyCodes.K))
torque = 12000;
if (Manager.Instance.Input.KeyboardMouseInput.IsKeyPressed(KeyCodes.J))
steering += new Degree(30);
if (Manager.Instance.Input.KeyboardMouseInput.IsKeyPressed(KeyCodes.L))
steering -= new Degree(30);
Player.Physics.setTorqueSteering(torque, steering);
I dont know how to fix it... It moves way to slow.