浏览代码

increase max step

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

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


public void MatchReset()
{
m_BallScript.ResetPoint();
var ballOut = Random.Range(12.5f, 14f);
var flip = Random.Range(0, 2);
var serve = 1f;

ball.transform.position = new Vector3(serve * ballOut, 1f, 0f) + transform.position;
m_BallRb.velocity = new Vector3(serve * 5f, 10f, 0f);
ball.transform.localScale = new Vector3(.5f, .5f, .5f);
m_BallScript.ResetPoint();
}
void FixedUpdate()

正在加载...
取消
保存