Expressing a Local Step in World Coordinates
A local forward displacement must be interpreted using the platform's current heading before it is added to world position.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace an aligned turn
At a ninety-degree counterclockwise heading in x-right, y-up coordinates, a local x displacement two becomes world displacement \((0,2)\). The rotation uses the same rule as rotating points.
Check the start position
Add the displacement to the existing world position once. A direction vector and a position serve different roles. See local and world coordinates.[1]