浏览代码

update sensor fields at runtime

/develop/grid-vaiable-names
Ruo-Ping Dong 4 年前
当前提交
e763ce68
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 12
      com.unity.ml-agents.extensions/Runtime/Sensors/GridSensor.cs
  2. 2
      com.unity.ml-agents.extensions/Runtime/Sensors/GridSensorComponent.cs

12
com.unity.ml-agents.extensions/Runtime/Sensors/GridSensor.cs


set { m_CompressionType = value; }
}
public bool RotateWithAgent
{
get { return m_RotateWithAgent; }
set { m_RotateWithAgent = value; }
}
public LayerMask ColliderMask
{
get { return m_ColliderMask; }
set { m_ColliderMask = value; }
}
public int[] GizmoColorIndexes
{
get { return m_GizmoColorIndexes; }

2
com.unity.ml-agents.extensions/Runtime/Sensors/GridSensorComponent.cs


if (m_Sensor != null)
{
m_Sensor.CompressionType = m_CompressionType;
m_Sensor.RotateWithAgent = m_RotateWithAgent;
m_Sensor.ColliderMask = m_ColliderMask;
}
}

正在加载...
取消
保存