đźš—
ArcadeVehicleController
  • Welcome
  • Getting Started
    • Layer Setup
    • Demo Scenes
  • Vehicles
    • Preparing Your Vehicle
    • Building Your Vehicle
    • Vehicle Settings
    • Audio and AudioData
    • Drift Settings
    • Collisions and CollisionEffectsData
    • Looser Ground Follow
  • Script Reference
    • Properties
    • Public Methods
  • Addons
    • Multiple Wheel Spin
    • Multiple Wheel Turn
  • Help
    • Troubleshooting
    • Wheel Fixer
    • Updating to v1.12
  • Release Notes
  • Links
    • Asset Store
    • Social Links
  • Github Gists
Powered by GitBook
On this page

Was this helpful?

  1. Vehicles

Preparing Your Vehicle

PreviousDemo ScenesNextBuilding Your Vehicle

Last updated 2 years ago

Was this helpful?

AVC requires that your model be setup in a certain way, so that various parts of the vehicle rotate correctly - for example: wheels rotate around the center and the front wheels turn on Y correctly.

Model Preparation

1- For the vehicle to work correctly, the hierarchy needs to be setup in a certain way. Below is an image of how the included demo vehicle model imported, this won’t work.

2- Compare that with the hierarchy for the prefab.

Model holds everything, and should be at position 0,0,0.

Body has all the body parts underneath it, and should be at 0,0,0.

Parts is optional, required for this model because the body faces in the wrong direction. This GameObject is rotated 180 on Y.

The two front tires require an empty GameObject (FrontParent) to deal with their turning rotation. Due to the pivot point on these wheels, they also require an additional empty GameObject (tireFront) to get the pivot to be at 0,0,0 for the correct rotation.

Parenting the front wheels: 3- Create an empty GameObject.

4- Copy the position of your front left wheel.

5- Select the empty GameObject and paste the position from the front left wheel.

6- Draw the front left wheel to be a child of the empty GameObject and rename to “FrontLeftParent”.

7- Repeat for the front right wheel.

8- (Optional) The same process can also be used for the rear wheels, especially if the pivot for those wheels is not at the center of the wheel geometry.

Unorgnised model
Correct model layout