浏览代码

fixed angle obs

/develop/cubewars
Andrew Cohen 5 年前
当前提交
804f8345
共有 2 个文件被更改,包括 432 次插入428 次删除
  1. 857
      Project/Assets/ML-Agents/Examples/CubeWars/Prefabs/CubeWarArea.prefab
  2. 3
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs

857
Project/Assets/ML-Agents/Examples/CubeWars/Prefabs/CubeWarArea.prefab
文件差异内容过多而无法显示
查看文件

3
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs


sensor.AddObservation(m_HitPoints);
// Direction big agent is looking
Vector3 dirToSelf = transform.position - m_LargeAgent.transform.position;
float angle = Vector3.Dot(transform.forward.normalized, dirToSelf.normalized);
float angle = Vector3.Dot(m_LargeAgent.transform.forward.normalized, dirToSelf.normalized);
Debug.Log(angle);
}
public Color32 ToColor(int hexVal)

正在加载...
取消
保存