| #if UNITY_2020_1_OR_NEWER |
| using UnityEngine; |
|
|
| namespace Unity.MLAgents.Sensors |
| { |
| [UnityEngine.Scripting.APIUpdating.MovedFrom("Unity.MLAgents.Extensions.Sensors")] |
| public class ArticulationBodySensorComponent : SensorComponent |
| { |
| public ArticulationBody RootBody; |
|
|
| [SerializeField] |
| public PhysicsSensorSettings Settings = PhysicsSensorSettings.Default(); |
| public string sensorName; |
|
|
| |
| |
| |
| |
| public override ISensor[] CreateSensors() |
| { |
| return new ISensor[] {new PhysicsBodySensor(RootBody, Settings, sensorName)}; |
| } |
| } |
| } |
| #endif // UNITY_2020_1_OR_NEWER |
|
|