Download com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs from ashish2244/ppo-SnowballTarget: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs
- Command line
-
hf download hf://ashish2244/ppo-SnowballTarget/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs
-
curl -L -o RayPerceptionSensorComponent2D.cs https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs
472 Bytes
| using UnityEngine; | |
| namespace Unity.MLAgents.Sensors | |
| { | |
| /// <summary> | |
| /// A component for 2D Ray Perception. | |
| /// </summary> | |
| [] | |
| public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase | |
| { | |
| /// <inheritdoc/> | |
| public override RayPerceptionCastType GetCastType() | |
| { | |
| return RayPerceptionCastType.Cast2D; | |
| } | |
| } | |
| } | |