![]() |
Nano Brain for Unity v0.1
|
A sensor which can detect contacts with static GameObjects or Rigidbodies.
Public Attributes | |
| float | sensorRange = 10f |
| Maximum distance the sensor detects anything. | |
| float | sampleInterval = 0.1f |
| Time between samples in seconds. | |
| LayerMask | senseLayer |
| Unity Layer for the light objects. | |
| Neuron | sensoryNeuron |
| The NanoBrain::Neuron which is stimulated by this sensor. | |
Protected Member Functions | |
| override float | SampleSensor () |
| Returns the current touching state. | |
| virtual void | Awake () |
| Unity calls Awake when loading an instance of a script component. | |
Properties | |
| bool | touching [get, protected set] |
| Is the sensor touching something? | |
| float | output [get, protected set] |
| Output value of the sensor. | |
|
protectedvirtual |
Returns the current touching state.
Reimplemented from Sensor.
|
inherited |
Unity Layer for the light objects.
This is used to improve performance