Modify Trigger Size
Description
Controls the dimension of the front trigger based on the vehicle's speed.
Declaration
Parameters
Name
Description
currentSpeed
The current speed of the vehicle.
frontCollider
The front trigger to be modified.
maxSpeed
The maximum possible speed of the vehicle.
minTriggerLength
The minimum dimension allowed for the trigger, that was set inside the Vehicle Component.
maxTriggerLength
The maximum dimension allowed for the trigger, that was set inside the Vehicle Component.
Set Method
If the vehicle index is -1, this delegate will be used for all vehicles otherwise will be used only for the vehicle passed as a parameter.
Example
Default delegate implementation can be found inside DefaultDelegates.cs
Last updated