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

Description

A non-directional sensor.

The sensor has a field of view, but the signal returned does not include a direction

Inheritance diagram for Sensor:
LightSensor

Public Attributes

float sensorRange = 10f
 Maximum distance the sensor detects anything.
 
float sampleInterval = 0.1f
 
LayerMask senseLayer
 Unity Layer for the light objects.
 
float _output
 
Neuron sensoryNeuron
 

Protected Member Functions

virtual void Awake ()
 
virtual float SampleSensor ()
 

Protected Attributes

Vehicle vehicle
 
Cluster brain
 

Properties

float output [get]
 Output value of the sensor.
 

Member Data Documentation

◆ senseLayer

LayerMask senseLayer

Unity Layer for the light objects.

This is used to improve performance