Vehicle Settings
Last updated
Last updated
Vehicle settings store the data for a vehicleβs movement. These settings can be used on multiple vehicles at the same time, making it easy to tweak values. You can have 50 vehicles and 1 settings object, or 50 vehicles each with their own settings.
To create a new settings object, navigate to the folder you wish to store it in: right mouse click -> Create -> e23 -> AVC -> Vehicle Settings
The below image is from the Airboat example settings that come included with the asset. Most of the values are self-explanatory.
Acceleration β How fast to speed up the vehicle.
Max Speed β How fast the vehicle can drive (used for forward and reverse).
Break Speed β How fast to slow the vehicle down.
Boost Speed β How fast the vehicle will move when boosting
Max Speed To start Reversing β Breaking will slow the vehicle down (using break speed), once this value is reached the vehicle will stop breaking and start reversing.
Steering β Controls the turning angle of the vehicle, how tight the vehicle can turn. The lower the value, the larger the turning arch.
Gravity β A higher value will bring the vehicle down to the ground faster.
Drift β How easily the vehicle will slide around a corner, the lower the value the harder it is to drift.
Vehicle Body Tilt β How much the vehicle will tilt on the Z axis when turning.
Forward Tilt β The multiplier applied to work out how much the vehicle should tilt on the X axis, when moving forward. The higher the value, the smaller the tilt.
Strafe Tilt β The multiplier applied to work out how much the vehicle should tilt on the Z axis, when moving sideways. The higher the value, the smaller the tilt. This will not be used by the majority of vehicles, it's for hover vehicles.
Anular Drag β This sets the angular drag on your vehicles Rigidbody. Leave at -1 to use the angular drag set on the Rigidbody.
Auto Start Engine (new in v1.5) - Have the engine already running when the game starts, or require the engine to be started by the player.
Looser Ground Follow (new in v1.5) - A toggle to switch between a tight ground follow when jumping off ramps, with this flag enabled the vehicle will reach higher off the ground (how AVC has been since release), disabling it keeps the vehicle closer to the ground, see this page for details.
Stay Flat In Air (new in v1.5) - Toggle whether the vehicle should stay flat, or rotate to point towards the ground as it falls off a cliff face.
Turn in Air β Allow the vehicle to rotate when not grounded.
Turn When Stationary β Allow the vehicle to rotate when not moving.
Two Wheel Tilt β Used for motorbikes, to give an extra tilt when turning corners.
Stop Slope Slide β Enabling this will stop the vehicle from sliding down a slope, when it is perpendicular to the slope.
Slide Thresthold β Set the angle that the vehicle will start sliding down a slope. 1 requires the vehicle to be at 90 degress to not slide, 0.1 requires the vehicle to be pointing almost directly down the slope to start moving.
Ground Layer β This is a LayerMask for you to set as your ground layers, which the vehicle will use to know if it is grounded.