浏览代码

faster ball real max step

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

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


agentParameters:
maxStep: 0
hasUpgradedFromAgentParameters: 1
MaxStep: 600
MaxStep: 5000
ball: {fileID: 1273406647218856}
invertX: 0
score: 0

agentParameters:
maxStep: 0
hasUpgradedFromAgentParameters: 1
MaxStep: 600
MaxStep: 5000
ball: {fileID: 1273406647218856}
invertX: 1
score: 0

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


{
m_BallRb.AddForce(m_Down);
var rgV = m_BallRb.velocity;
m_BallRb.velocity = new Vector3(Mathf.Clamp(rgV.x, -40f, 40f), Mathf.Min(rgV.y, 35f), rgV.z);
m_BallRb.velocity = new Vector3(Mathf.Clamp(rgV.x, -50f, 50f), Mathf.Min(rgV.y, 35f), rgV.z);
}
}
正在加载...
取消
保存