Class RayPerceptionSensorComponent3D
A component for 3D Ray Perception.
Inheritance
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: Unity.ML-Agents.dll
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 |
---|---|
float |
StartVerticalOffset
Ray start is offset up or down by this amount.
Declaration
public float StartVerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
GetCastType()
Returns the Ray
Declaration
public override RayPerceptionCastType GetCastType()
Returns
Type | Description |
---|---|
Ray |
|
Overrides
GetEndVerticalOffset()
Returns the amount that the ray end is offset up or down by.
Declaration
public override float GetEndVerticalOffset()
Returns
Type | Description |
---|---|
float | The amount that the ray end is offset up or down by. |
Overrides
GetStartVerticalOffset()
Returns the amount that the ray start is offset up or down by.
Declaration
public override float GetStartVerticalOffset()
Returns
Type | Description |
---|---|
float | The amount that the ray start is offset up or down by. |