浏览代码

revert tennis timepenalty

/asymm-envs
Andrew Cohen 5 年前
当前提交
99b18d2e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs

2
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


var rgV = m_AgentRb.velocity;
m_AgentRb.velocity = new Vector3(Mathf.Clamp(rgV.x, -20, 20), Mathf.Min(rgV.y, 10f), rgV.z);
timePenalty -= m_Existential;
//timePenalty -= m_Existential;
m_TextComponent.text = score.ToString();
}

正在加载...
取消
保存