![]() |
Nano Brain for Unity v0.1
|
A powered wheel collider, controlled by a NanoBrain::Neuron.
Inherits MonoBehaviour.
Public Attributes | |
| string | outputNeuronName |
| The name of the NanoBrain::Neuron to control this wheel. | |
| float | maxTorque = 1 |
| The maximum torque used to drive the wheel collider. | |
| WheelCollider | wheelCollider |
| The wheel collider used to drive the car. | |
| Neuron | motorNeuron |
| The NanoBrain::Neuron to control this wheel. | |
Protected Member Functions | |
| virtual void | Awake () |
| Unity calls Awake when loading an instance of a script component. | |
Properties | |
| float | speed [get, protected set] |
| The speed of the motor in rotations per second. | |
| string outputNeuronName |
The name of the NanoBrain::Neuron to control this wheel.
This is used to connect the motor to the right output neuron of the Vehicle::brain
| WheelCollider wheelCollider |
The wheel collider used to drive the car.