top of page

Tank Control Research

  • Writer: Janice
    Janice
  • Apr 20, 2024
  • 1 min read

Acceleration:

Tank movement requires calculation acceleration amount, which also requires a tank engine horsepower and tank mass. As I research the horsepower calculation, it requires the speed and torque for horsepower Acceleration (https://powertestdyno.com/how-to-calculate-horsepower/#:~:text=The%20equation%20to%20calculate%20horsepower,%3D%20Torque%20x%20RPM%20%2F%205%2C252.) Since the horsepower was defined and could be adjusted from the scriptable object, it just needs to get reference of the Horsepower and Tank Mass to calculate the Tank accelerate speed.


After the speed calculation, it just requires the vector transform to make the Tank accelerate. To improve the Tank acceleration movement, clamping between a max speed and a new speed to slowly increase the acceleration so it moves more natural.


The video performs a tank acceleration by comparing the input variable, an if statement between 1 and -1 and the change between the acceleration difference. Based on the tutorial, inputting horsepower, tank mass and tank speed calculation to perform tank movement control with a tank engine.

Steering:

Steering on the tank is a simple method of using Quterion rotation to move the tank rigidbody depends on the user inout value and read the Scriptable object turning degree.

Outcome:


Kommentare


Janice Game Portfolio

  • LinkedIn
  • YouTube
bottom of page