浏览代码

zero rewards if ground contact

/active-variablespeed
HH 4 年前
当前提交
cc0c893d
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 11
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/GroundContact.cs

11
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/GroundContact.cs


touchingGround = true;
if (penalizeGroundContact)
{
agent.SetReward(groundContactPenalty);
// agent.SetReward(groundContactPenalty);
agent.SetReward(0);
}
if (agentDoneOnGroundContact)

}
}
void FixedUpdate()
{
if (touchingGround)
{
agent.SetReward(0);
}
}

正在加载...
取消
保存