浏览代码

inc energy pen

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

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


m_AgentRb.velocity = new Vector3(Mathf.Clamp(rgV.x, -35f, 35f), Mathf.Min(rgV.y, 15f), rgV.z);
// energy usage penalty cumulant
energyPenalty += -0.0001f * (Mathf.Abs(moveX) + upward);
energyPenalty += -0.001f * (Mathf.Abs(moveX) + upward);
m_TextComponent.text = score.ToString();
}

正在加载...
取消
保存