C# Class SensorsNoWall, SPCSAISelfDrivingCar

Inheritance: MonoBehaviour
Mostrar archivo Open project: MCKapur/SPCSAISelfDrivingCar

Public Properties

Property Type Description
cam Camera
informationList List
leftwardSensorLocation Transform
rayIncrementAngle float
rayMaxAngle float
rayStartAngle float

Public Methods

Method Description
ClearList ( ) : void
GetDistanceToObject ( ) : string
SerializeList ( ) : string
addInformationList ( ) : IEnumerator

Private Methods

Method Description
Awake ( ) : void
FindLongestForwardRay ( float minAngle, float maxAngle, float angleIncrement ) : float
FindWidestLeftRay ( float minAngle, float maxAngle, float angleIncrement ) : float
FindWidestRightRay ( float minAngle, float maxAngle, float angleIncrement ) : float
OnCollisionEnter ( Collision other ) : void
OnCollisionStay ( Collision other ) : void
OnGUI ( ) : void
SendRay ( float horizontalAngle, bool isRight ) : Vector2
Start ( ) : void
Update ( ) : void

Method Details

ClearList() public method

public ClearList ( ) : void
return void

GetDistanceToObject() public method

public GetDistanceToObject ( ) : string
return string

SerializeList() public method

public SerializeList ( ) : string
return string

addInformationList() public method

public addInformationList ( ) : IEnumerator
return IEnumerator

Property Details

cam public_oe property

public Camera cam
return Camera

informationList public_oe static_oe property

public static List informationList
return List

leftwardSensorLocation public_oe property

public Transform leftwardSensorLocation
return Transform

rayIncrementAngle public_oe property

public float rayIncrementAngle
return float

rayMaxAngle public_oe property

public float rayMaxAngle
return float

rayStartAngle public_oe property

public float rayStartAngle
return float