浏览代码

slow down ball/nerf jump

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

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


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