浏览代码

Clarify normalization for vectors (#3654)

/bug-failed-api-check
GitHub 4 年前
当前提交
08b5a645
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      docs/Learning-Environment-Design-Agents.md

1
docs/Learning-Environment-Design-Agents.md


```csharp
normalizedValue = (currentValue - minValue)/(maxValue - minValue)
```
:warning: For vectors, you should apply the above formula to each component (x, y, and z). Note that this is *not* the same as using the `Vector3.normalized` property or `Vector3.Normalize()` method in Unity (and similar for `Vector2`).
Rotations and angles should also be normalized. For angles between 0 and 360
degrees, you can use the following formulas:

正在加载...
取消
保存