Skip to content

Commit 6a11071

Browse files
author
Chris Elion
authored
Clarify normalization for vectors (#3654)
1 parent fcd8d32 commit 6a11071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/Learning-Environment-Design-Agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ To normalize a value to [0, 1], you can use the following formula:
160160
```csharp
161161
normalizedValue = (currentValue - minValue)/(maxValue - minValue)
162162
```
163+
: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`).
163164

164165
Rotations and angles should also be normalized. For angles between 0 and 360
165166
degrees, you can use the following formulas:

0 commit comments

Comments
 (0)