浏览代码

remove rotation hindrance

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

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


}
m_AgentRb.AddForce(new Vector3(moveX * 5f, upward * 10f, 0f), ForceMode.VelocityChange);
//m_AgentRb.AddForce(new Vector3(moveX * 20f, upward * 10f, 0f), ForceMode.VelocityChange);
Quaternion deltaRotation = Quaternion.Euler(zAxis * rotateZ * .5f);
Quaternion deltaRotation = Quaternion.Euler(zAxis * rotateZ);// * .5f);
m_AgentRb.MoveRotation(m_AgentRb.rotation * deltaRotation);
//gameObject.transform.Rotate(0f, 0f, rotateZ);

1
config/trainer_config.yaml


hidden_units: 512
beta: 1.0e-2
time_horizon: 1000
threaded: false
self_play:
window: 10
play_against_latest_model_ratio: 0.5

正在加载...
取消
保存