Project-Wide Surface Settings
Last updated
Last updated
In order to add surface-specific properties that affect the vehicle behavior, open the Package Settings window.
Open the window by going to Tools -> CustomVehicleController -> Package Settings.
You will see a foldout where you can:
Enable/Disable this feature
Associate the physic material and the surface properties
Acceleration Friction - a multiplier to the car's acceleration friction.
Steering Friction - a multiplier to the car's steering friction.
Surface Drag - additional drag to the car's rigidbody. The actual amount that will be added to the rigidbody is scaled with the amount of wheels on this surface, so for the full effect all the wheels must be in contact, otherwise the effect will be lessened.
To add the new surface setting, click the "New Surface Property" Button.
To remove the setting, click on the "X" button on the right of the setting.
After you create a new entry to the surfaces list, assign a physic material.
Modify the parameters
Assign the physic material to the road's collider component
Surface Roughness - defines how bumpy the surface is. This is purely for a shaking visual effect, which can be enabled on the Acts as a shaking effect strength multiplier.