浏览代码

Fix Walker bug with dirToTarget (#3309)

/asymm-envs
GitHub 5 年前
当前提交
2990116f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs

1
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs


// b. Rotation alignment with goal direction.
// c. Encourage head height.
// d. Discourage head movement.
m_DirToTarget = target.position - m_JdController.bodyPartsDict[hips].rb.position;
AddReward(
+0.03f * Vector3.Dot(m_DirToTarget.normalized, m_JdController.bodyPartsDict[hips].rb.velocity)
+ 0.01f * Vector3.Dot(m_DirToTarget.normalized, hips.forward)

正在加载...
取消
保存