Next: Hangable place, Previous: Alternative gamepads, Up: Movements [Contents][Index]
The concept of directed relative positioning, necessary to easily describe the relations between constructions and the kid is analogous to the already defined concept of non-directed relative positioning, used to describe relations between constructions. Consider the kid’s place C, which has the coordinates (r,f,p), its 8 adjacent places and the direction the kid is facing, as shown in the following two figures.
TF (top front) T (top) TB (top back) F (front) C (center)BA (back) BF (bottom front), B (bottom) BB (bottom back)
Then we define the following mapping between names and coordinates:
Left | Right | Coordinates |
---|---|---|
TF | TB | (r,f - 1,p - 1) |
T | T | (r,f - 1,p) |
TB | TF | (r,f - 1,p + 1) |
F | BA | (r,f,p - 1) |
C | C | (r,f,p) |
BA | F | (r,f,p + 1) |
BF | BB | (r,f + 1,p - 1) |
B | B | (r,f + 1,p) |
BB | BF | (r,f + 1,p + 1) |