Tank-drive simulation
Posted: Mon Jul 05, 2010 3:33 pm
Hi,
I would like to simulate a tank with bepu physics, so far I got two rows of 7 wheel on each side of the tank, I can drive forward and backward but turning does not work. I tried setting one side to a targetspeed and one side to zero speed or brake to simulate the chain-drive behaviour but it does not work. I use the wheelsetting from the VehicleInput of the demos :
w = new Wheel(
new RaycastWheelShape(1.4f, wheelRotation),
new WheelSuspension(2000, 100f, Vector3.Down, 1.3f, new Vector3(-7.5f, -6.0f, -10.0f)),
new WheelDrivingMotor(5.0f, 30000, 10000),
new WheelBrake(1.5f, 2, .02f),
new WheelSlidingFriction(4, 5));
and that might be the problem I think those are settings for a normal car wheel and not for a tank chain.
The model has a weight of 500f to make it "heavy" but at a forward speed of 10 it does a wheelie what should be the best ratio between model weight and wheel targetspeed and which settings for sliding, friction and stuff would fit a tank better?
I also thought of simulation the turning behaviour by actualling turning the wheels at almost 90degrees and correcting just the visual rotation of the wheel to make it look that it does not turn.
Grobi
I would like to simulate a tank with bepu physics, so far I got two rows of 7 wheel on each side of the tank, I can drive forward and backward but turning does not work. I tried setting one side to a targetspeed and one side to zero speed or brake to simulate the chain-drive behaviour but it does not work. I use the wheelsetting from the VehicleInput of the demos :
w = new Wheel(
new RaycastWheelShape(1.4f, wheelRotation),
new WheelSuspension(2000, 100f, Vector3.Down, 1.3f, new Vector3(-7.5f, -6.0f, -10.0f)),
new WheelDrivingMotor(5.0f, 30000, 10000),
new WheelBrake(1.5f, 2, .02f),
new WheelSlidingFriction(4, 5));
and that might be the problem I think those are settings for a normal car wheel and not for a tank chain.
The model has a weight of 500f to make it "heavy" but at a forward speed of 10 it does a wheelie what should be the best ratio between model weight and wheel targetspeed and which settings for sliding, friction and stuff would fit a tank better?
I also thought of simulation the turning behaviour by actualling turning the wheels at almost 90degrees and correcting just the visual rotation of the wheel to make it look that it does not turn.
Grobi