浏览代码

make a few things in RayPerceptionSensorComponent public

/bug-failed-api-check
Chris Elion 4 年前
当前提交
e972ab46
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 14
      com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponentBase.cs

14
com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponentBase.cs


RayPerceptionSensor m_RaySensor;
/// <summary>
/// Get the RayPerceptionSensor that was created.
/// </summary>
public RayPerceptionSensor raySensor
{
get => m_RaySensor;
}
/// <summary>
/// Returns the <see cref="RayPerceptionCastType"/> for the associated raycast sensor.
/// </summary>
/// <returns></returns>

return new[] { obsSize * stacks };
}
RayPerceptionInput GetRayPerceptionInput()
/// <summary>
/// Get the RayPerceptionInput that is used by the <see cref="RayPerceptionSensor"/>.
/// </summary>
/// <returns></returns>
public RayPerceptionInput GetRayPerceptionInput()
{
var rayAngles = GetRayAngles(raysPerDirection, maxRayDegrees);

正在加载...
取消
保存