浏览代码

Update Learning-Environment-Create-New.md (#770)

Shouldn't Done(); be placed after the rewards are given?
/develop-generalizationTraining-TrainerController
Arthur Juliani 7 年前
当前提交
f66a306c
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      docs/Learning-Environment-Create-New.md

8
docs/Learning-Environment-Create-New.md


// Reached target
if (distanceToTarget < 1.42f)
{
Done();
Done();
}
```

// Fell off platform
if (this.transform.position.y < -1.0)
{
Done();
Done();
}
```

// Reached target
if (distanceToTarget < 1.42f)
{
Done();
Done();
}
// Getting closer

// Fell off platform
if (this.transform.position.y < -1.0)
{
Done();
Done();
}
previousDistance = distanceToTarget;

正在加载...
取消
保存