浏览代码

tunneling is a loss

/asymm-envs
Andrew Cohen 5 年前
当前提交
7475ad11
共有 2 个文件被更改,包括 11 次插入3 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab
  2. 10
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs

4
Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab


hasUpgradedFromAgentParameters: 1
MaxStep: 3000
ball: {fileID: 1273406647218856}
opponent: {fileID: 1882383181950958}
OpponentRb: {fileID: 0}
timePenalty: 0
--- !u!114 &2449890524009497851
MonoBehaviour:

hasUpgradedFromAgentParameters: 1
MaxStep: 3000
ball: {fileID: 1273406647218856}
opponent: {fileID: 1170495812642400}
OpponentRb: {fileID: 0}
timePenalty: 0
--- !u!114 &6598495797138489682
MonoBehaviour:

10
Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs


void OnCollisionEnter(Collision collision)
{
// tunnels through floor on your side is a loss
Reset();
if (transform.position.x > 0f)
{
AgentAWins();
}
else
{
AgentBWins();
}
}
else if (collision.gameObject.CompareTag("iWall"))
{

正在加载...
取消
保存