Class CheckpointTrigger
- Namespace
- LibreRally.Race
- Assembly
- LibreRally.dll
A trigger component that detects when a vehicle passes through a checkpoint.
[ComponentCategory("LibreRally")]
public class CheckpointTrigger : StartupScript, IIdentifiable, ICollectorHolder
- Inheritance
-
CheckpointTrigger
- Implements
-
IIdentifiableICollectorHolder
- Inherited Members
Properties
CheckpointIndex
Gets or sets the index of this checkpoint in the race.
public int CheckpointIndex { get; set; }
Property Value
Size
Gets or sets the physical size of the checkpoint trigger volume.
public Vector3 Size { get; set; }
Property Value
Methods
Start()
Creates and attaches the trigger volume that reports checkpoint crossings.
public override void Start()
Events
Triggered
Occurs when a vehicle body enters the checkpoint volume. Provides the checkpoint index.
public event Action<int>? Triggered