using UnityEngine;
namespace NanoBrain.Unity.Braitenberg {
///
/// A Braitenberg style vehicle with two sensors and two motors, powered by a Nanobrain
///
[RequireComponent(typeof(Rigidbody))]
[HelpURL("https://passer.life/documentation/nanobrain/Documentation/html/class_nano_brain_1_1_unity_1_1_braitenberg_1_1_vehicle.html")]
public class Vehicle : MonoBehaviour {
///
/// The NanoBrain::Cluster controlling the vehicle
///
[Tooltip("The NanoBrain Cluster controlling the vehicle")]
public Cluster brain;
[Header("Motors")]
///
/// The left motor
///
[Tooltip("The left motor")]
public Motor motorLeft;
///
/// The right motor
///
[Tooltip("The right motor")]
public Motor motorRight;
[Header("Sensors")]
///
/// The front-left sensor
///
/// When the vehicle has only one sensor, this can be used as the single sensor
[Tooltip("The front-left sensor")]
public Sensor sensorLeft;
///
/// The front-right sensor
///
/// When the vehicle has only one sensor, this can be set to null
[Tooltip("The front-right sensor")]
public Sensor sensorRight;
}
}