<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
<aside> 💡 Who is played on a level and how the vehicle moves.
</aside>
A Character defines the vehicle, the run camera and the three upgrades of a level. PlayerController runs the state machine, and a movement behavior created by a VehicleData asset steers the vehicle.
VehicleVisualBehavior. Upgrade stages can replace the model.<aside> 📄 Character Asset A Character is a ScriptableObject that defines who is played on a level: the vehicle prefab, the run camera and the three upgrades. The upgrade progress belongs to the Character.
</aside>
<aside> 📄 Player Controller PlayerController is the state machine of the character. It owns the rigidbody, the ground check, the run end detection and the effects. The vehicle behavior is a separate object, so it can be swapped during the run.
</aside>
<aside> 📄 Vehicle Data & Movement Behaviors A VehicleData asset chooses the movement of a vehicle and its optional visual. The MovementBehavior it creates steers the character. The same system powers the vehicle swap booster.
</aside>
<aside> 📄 Vehicle Visuals & Surface Effects A vehicle visual is a prefab with a VehicleVisualBehavior on its root. The components on the Character prefab add tracks, dust, ride sound and booster effects.
</aside>
<aside> 📄 How to add a new Vehicle A new vehicle needs a movement behavior, a VehicleData asset, a visual prefab, a Character prefab and a Character asset.
</aside>
Vehicle Data & Movement Behaviors