ppo-SnowballTarget / com.unity.ml-agents /Runtime /Sensors /RayPerceptionSensorComponent2D.cs
ashish2244's picture
Initial commit (part 5)
d353048 verified
Raw
History Blame Contribute Delete
472 Bytes
using UnityEngine;
namespace Unity.MLAgents.Sensors
{
/// <summary>
/// A component for 2D Ray Perception.
/// </summary>
[AddComponentMenu("ML Agents/Ray Perception Sensor 2D", (int)MenuGroup.Sensors)]
public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase
{
/// <inheritdoc/>
public override RayPerceptionCastType GetCastType()
{
return RayPerceptionCastType.Cast2D;
}
}
}