Class RayPerceptionSensorComponent3D
A component for 3D Ray Perception.
Inheritance
RayPerceptionSensorComponent3D
Inherited Members
UnityEngine.Component.guiText
UnityEngine.Component.guiElement
UnityEngine.Component.guiTexture
Namespace: Unity.MLAgents.Sensors
Syntax
[AddComponentMenu("ML Agents/Ray Perception Sensor 3D", 50)]
public class RayPerceptionSensorComponent3D : RayPerceptionSensorComponentBase
Properties
EndVerticalOffset
Ray end is offset up or down by this amount.
Declaration
public float EndVerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
Single |
StartVerticalOffset
Ray start is offset up or down by this amount.
Declaration
public float StartVerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
GetCastType()
Returns the RayPerceptionCastType for the associated raycast sensor.
Declaration
public override RayPerceptionCastType GetCastType()
Returns
Type | Description |
---|---|
RayPerceptionCastType |
Overrides
GetEndVerticalOffset()
Returns the amount that the ray end is offset up or down by.
Declaration
public override float GetEndVerticalOffset()
Returns
Type | Description |
---|---|
Single |
Overrides
GetStartVerticalOffset()
Returns the amount that the ray start is offset up or down by.
Declaration
public override float GetStartVerticalOffset()
Returns
Type | Description |
---|---|
Single |