Tank Movement - Prototype

Unity

Wheel track inputs


The goal was to make a tank movement that simulates real life. Therefore I used both sticks on the gamepad to control the wheels on the respective side on the tank to give the player a feeling of steering the tank with to levers.

Wheels functions


Each wheel have its own script that the tankmovement script uses to get the right force that should effect the tank. I used multiple raycasts from each wheel to se if the wheel touched the ground and in what directions the torque should effect the tanks movement. This made it possible to climb obstacles.

Camera view


I used a camera view from the driver set for emersion. It also made it easier to get a feeling of how the gamepad sticks input worked.