浏览代码

fixed char forward since it's a rotated capsule

/hh-develop-all-posed-characters
bhh 5 年前
当前提交
4e8a65ef
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Project/Assets/ML-Agents/Examples/Worm/Scripts/WormAgent.cs

3
Project/Assets/ML-Agents/Examples/Worm/Scripts/WormAgent.cs


/// </summary>
void RewardFunctionFacingTarget()
{
m_FacingDot = Vector3.Dot(m_DirToTarget.normalized, bodySegment0.forward);
// m_FacingDot = Vector3.Dot(m_DirToTarget.normalized, bodySegment0.forward);
m_FacingDot = Vector3.Dot(m_DirToTarget.normalized, bodySegment0.up);
AddReward(0.01f * m_FacingDot);
}

正在加载...
取消
保存