Inputs and Commands Essentials
Topology
DETERMINISTIC
Overview
This sample exemplifies the basic uses of Quantum's Inputs and Commands.
Find here the manuals for Input and Commands
For a detailed overview of the sample, watch the following video tutorial which utilizes it.
Project Structure
Find the main assets and scripts for this project in the folder Assets/QuantumEssentials/InputsAndCommands.
The folders are organized as follows:
- Simulation: Contains the qtn file with the input definition, a file with the example Command definition and a system which reads and applies both inputs and commands;
- View: Contains the input poller script which reads Unity input and sends it to the simulation and also contains the script that creates and send a Deterministic Commands to the simulation;
- Scene: Contains the main sample scene;
- Resources: Contains basic prefab and assets to run the game scene, which are not very relevant for teaching this sample's concept itself.
Testing the sample
To test the sample, simply play the scene contained within the Scene folder, use WASD to move around and Space Bar to jump.