Nano Brain for Unity v0.1
Loading...
Searching...
No Matches
Public Attributes | Protected Member Functions | Properties | List of all members
Motor Class Reference

Description

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.
 

Member Data Documentation

◆ outputNeuronName

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 wheelCollider

The wheel collider used to drive the car.

See also
Unity WheelCollider