Gameplay And Testing
How to test gameplay and cars
To test gameplay scenes and cars:
- Open the 
Cityscene; - Select the 
Racesgameobject; - In the 
MapSelectorcomponent select the gameplay you want to test; and, - Tweak the players' setup in 
QuantuRunnerLocalDebugcomponent:- Check Players property to change what car will be player controlled or let the AI drive the car (PlayerType = AI) with a selected AI config;
 - Set the 
PlayerCountproperty (total number of players in the gameplay) andAIPlayerCount(how many from the total player numbers will be AI players); and, - It is possible to change what cars will be AI driven and what AI configs will be used in the 
AIPlayersarray property. 
 
How to add a new car
To create a new car and add it to the game:
- Create a prefab variant from the 
CarBaseprefab; - Add car graphics;
 - Move the prepared 
WheelHubGameObjects to appropriate positions; - Move the wheel objects under appropriate wheel hubs;
 - Assign the wheels in the 
WheelRotationcomponent; - Assign the car body in the 
CarTiltcomponent; and, - Tweak component values if needed (physics colliders, car axles, forces,...).
 
How to add new race track
To create a new race track and add it to the game;
- Duplicate an existing gameplay under 
Gameplaysroot object; - Duplicate the 
MapDataasset and assign it in theMapDatacomponent of the gameplay object; - Change barricades and pickups according to the new track;
 - Change the start position and checkpoints accordingly to new track and assign them in the 
Gameplaycomponent (onGameplaygameobject); - Add driving paths (see Driving Path Editor section) under the 
Gameplaygameobject; - Select this new track in 
MapSelector(on theRacesgameobject) and save the scene (triggering the bake process); and, - Playtest.