CMovement::InitState
function · collision · orchestration
- Address
0x7c4850· 220 bytes, up to0x7c492b- Signature
CMovement * __thiscall (CMovement *this, const float *position, float facing, const uint64_t *owner)- Meaning
- Stores the position and facing as live and anchor values, zeroes the kinematic fields and stamps the clock
- Confidence
- verified, proof one
- Finding
- collision/kinematics#shared-constructor
Finding: Shared constructor in collision: kinematics
0x7c4850(position, facing, owner) fills CMovement from +0x00 to +0xab and returns it.
+0x34, +0x58, +0x80 and +0xac are not written.
| fields | value |
|---|---|
+0x00 to +0x0c (two list links) | 0 |
+0x10, +0x44 (position, anchor position) | position[0..2] |
+0x1c, +0x50 (facing, anchor facing) | facing |
+0x20, +0x54 (pitch, anchor pitch) | 0 |
+0x24 (up vector) | (0, 0, 1.0) |
+0x30 | owner, a pointer to a 64-bit GUID |
+0x38, +0x3c, +0x40 (transport, flags) | 0 |
+0x5c to +0x6c (direction, heading basis) | 0 |
+0x70, +0x74 (pitch basis) | 1.0, 0 |
+0x78, +0x7c | 0, position[2] |
+0x84 to +0xa4 (speed, five speeds, turn rate, vertical, spline) | 0 |
+0xa8 | the client clock, 0x42c010() |
The derivation is in the doc.
Callers 1
- CMovement::CMovement collision
Callees 1
- OsGetAsyncTimeMs core
Calls and jumps by a bare address, from tables/calls.tsv.