diff options
| author | theo3 <arisstephenson2@gmail.com> | 2022-01-21 21:26:18 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2022-01-21 21:28:44 -0800 |
| commit | a6f8dabcea39c6e7679b75aaaa06319c6577d000 (patch) | |
| tree | 985b6db3de5058bff19e1991cc5d70681dd5f1b5 /include/entity.h | |
| parent | 0cf1dca4d208a1568ed2aeec3bb40d78dd6379dc (diff) | |
fixed point stuff
Diffstat (limited to 'include/entity.h')
| -rw-r--r-- | include/entity.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/entity.h b/include/entity.h index c3477e9e..5ff5dcdc 100644 --- a/include/entity.h +++ b/include/entity.h @@ -160,14 +160,14 @@ typedef struct Entity_ { /*0x1d*/ u8 field_0x1d; /*0x1e*/ u8 frameIndex; /*0x1f*/ u8 lastFrameIndex; - /*0x20*/ s32 zVelocity; /**< Z axis speed. */ + /*0x20*/ s32 zVelocity; /**< Z axis speed, measured in px/frame */ /*0x24*/ s16 speed; /**< Magnitude of speed. */ /*0x26*/ u8 spriteAnimation[3]; /*0x29*/ SpritePriority spritePriority; /*0x2a*/ u16 collisions; - /*0x2c*/ union SplitWord x; /**< X position, fixed point. */ - /*0x30*/ union SplitWord y; /**< Y position, fixed point. */ - /*0x34*/ union SplitWord z; /**< Z position, fixed point. */ + /*0x2c*/ union SplitWord x; /**< X position, fixed point Q16.16. */ + /*0x30*/ union SplitWord y; /**< Y position, fixed point Q16.16. */ + /*0x34*/ union SplitWord z; /**< Z position, fixed point Q16.16. */ /*0x38*/ u8 collisionLayer; /**< Collision layer. */ /*0x39*/ s8 interactType; /*0x3a*/ u8 field_0x3a; |
