浏览代码

FoodCollectorAgent - don't convert bool to int (#4169)

/MLA-1734-demo-provider
GitHub 4 年前
当前提交
323f2417
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorAgent.cs

4
Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorAgent.cs


var localVelocity = transform.InverseTransformDirection(m_AgentRb.velocity);
sensor.AddObservation(localVelocity.x);
sensor.AddObservation(localVelocity.z);
sensor.AddObservation(System.Convert.ToInt32(m_Frozen));
sensor.AddObservation(System.Convert.ToInt32(m_Shoot));
sensor.AddObservation(m_Frozen);
sensor.AddObservation(m_Shoot);
}
}

正在加载...
取消
保存