benilla-re systems structs docs

CMovement

struct · collision · 352 bytes

Meaning
Holds a unit's movement: the shared kinematics to +0xab, then collision size, relay timing, event queue and unit
Confidence
verified, proof one
Finding
collision/mover#construction

Finding: Construction in collision: mover

0x616fa0(position, facing, guid, unit) runs 0x7c4850(position, facing, guid) for +0x00 to +0xab, then sets the rest of the 352-byte CMovement, which has no vtable, in this order:

fieldvalue
+0x13c, +0x148, +0x14c0
+0xb00.33333334 (0x3eaaaaab)
+0xb42.0277777 (0x4001c71c)
+0xb81.0
+0x154, +0x158, +0x150&+0x154, &+0x154 with bit 0 set, link offset 0
+0x15cunit
(call)0x7c5a20(0)
+0xbc to +0xf8sixteen −50
+0xfc to +0x138sixteen 50
+0x14050

+0x144 is left unset. It returns this.

The derivation is in the doc.

Fields 41

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_linkHolds a list link, zeroed by the constructor and unlinked by 0x7c5950verified, proof onecollision/kinematics#teardown
0x00088void *[2]m_transportLinkHolds the transport passenger link; linked when its second dword is not 0inferredcollision/kinematics#teardown
0x001012float[3]m_positionHolds the live position, in transport space while a transport GUID is setverified, proof onecollision/kinematics#anchors-and-elapsed-time
0x001c4floatm_facingHolds the live facing, recomputed from the anchor facing each substepverified, proof onecollision/kinematics#facing-and-pitch-integration
0x00204floatm_pitchHolds the live pitch, recomputed from the anchor pitch and clamped to ±π/2verified, proof onecollision/kinematics#facing-and-pitch-integration
0x002412float[3]m_upVectorHolds the up vector: (0, 0, 1) at construction, the averaged contact normal after a resolve, rolled by a bankverified, proof onecollision/resolve#ground-normal-refresh
0x00304const uint64_t *m_ownerHolds a pointer to the owner's GUID, passed to the movement notificationsverified, proof onecollision/kinematics#shared-constructor
0x00388uint64_tm_transportGuidHolds the transport GUID; 0 makes the transport transforms the identityverified, proof onecollision/kinematics#transport-space-transforms
0x00404uint32_tm_moveFlagsHolds the movement flags: direction 0xf, turn 0x30, pitch 0xc0, walk 0x100, falling 0x2000, swim 0x00200000verified, proof onecollision/kinematics#displacement-dispatcher
0x004412float[3]m_anchorPositionHolds the position the displacement is measured from, copied from +0x10 by 0x7c5cd0verified, proof onecollision/kinematics#anchors-and-elapsed-time
0x00504floatm_anchorFacingHolds the facing the turn integrates from, copied from +0x1c by 0x7c5cd0verified, proof onecollision/kinematics#anchors-and-elapsed-time
0x00544floatm_anchorPitchHolds the pitch the pitch integrates from, copied from +0x20 by 0x7c5cd0verified, proof onecollision/kinematics#anchors-and-elapsed-time
0x00584uint32_tm_anchorElapsedHolds the milliseconds since the anchors, zeroed by 0x7c5cd0 and added to before each dispatchverified, proof onecollision/kinematics#anchors-and-elapsed-time
0x005c12float[3]m_directionHolds the unit travel direction the straight displacement usesverified, proof onecollision/kinematics#direction-and-heading-basis
0x00688float[2]m_headingBasisHolds the horizontal travel axis: cos and sin of the anchor facing, turned for strafeverified, proof onecollision/kinematics#direction-and-heading-basis
0x00708float[2]m_pitchBasisHolds cos and sin of the anchor pitch while swimming, else 1 and 0verified, proof onecollision/kinematics#direction-and-heading-basis
0x00784uint32_tm_fallTimeHolds the milliseconds elapsed on the fall arc, zeroed when an arc startsverified, proof onecollision/falling#arc-fields-and-constants
0x007c4floatm_fallStartZHolds the arc start height; the body is D(t) below itverified, proof onecollision/falling#arc-fields-and-constants
0x00804floatm_stepBaseZHolds the z a step-up probe started from, the base of the climb limitinferredcollision/walking#step-up-probe
0x00844floatm_currentSpeedHolds the current speed, stored by 0x7c5c20verified, proof onecollision/kinematics#current-speed-selector
0x00884floatm_walkSpeedHolds the walk speedinferredcollision/kinematics#current-speed-selector
0x008c4floatm_runSpeedHolds the run speedinferredcollision/kinematics#current-speed-selector
0x00904floatm_runBackSpeedHolds the backward run speedinferredcollision/kinematics#current-speed-selector
0x00944floatm_swimSpeedHolds the swim speedinferredcollision/kinematics#current-speed-selector
0x00984floatm_swimBackSpeedHolds the backward swim speedinferredcollision/kinematics#current-speed-selector
0x009c4floatm_turnRateHolds the turn rate in radians per second, also the pitch rateverified, proof onecollision/kinematics#turn-and-pitch-rates
0x00a04floatm_fallStartSpeedHolds the arc launch speed, down-positive: a jump stores -7.955547verified, proof onecollision/falling#arc-fields-and-constants
0x00a44void *m_splineHolds the 0x70-byte spline record 0x630c40 allocates, or nullverified, proof onecollision/commands#spline-commands
0x00a84uint32_tm_lastFireTimeHolds the fire time of the last status, seeded with the event time of the firstverified, proof onecollision/status#status-fire-time
0x00ac4uint32_tm_lastSenderStampHolds the last sender time stamp, kept only on a forward step and advanced by a skipverified, proof onecollision/status#status-fire-time
0x00b04floatm_collisionRadiusHolds half the model width times the scale (0x6174b0); 1/3 at constructionverified, proof onecollision/mover#collision-size
0x00b44floatm_collisionHeightHolds the model height times the scale (0x6174b0); 2.0277777 at constructionverified, proof onecollision/mover#collision-size
0x00b84floatm_scaleRatioHolds the scale over the display scale, or 1.0 when that is below 2^-22; 1.0 at constructionverified, proof onecollision/mover#collision-size
0x00bc128int32_t[32]m_latenessRingHolds the last 32 lateness samples 0x618b50 stores, in ms; sixteen -50 then sixteen 50 at constructionverified, proof onecollision/eventapply#lateness-ring
0x013c4uint32_tm_latenessCursorHolds the ring slot 0x618b50 writes next, advanced modulo 32verified, proof onecollision/eventapply#lateness-ring
0x01404int32_tm_latenessBaseHolds the ring maximum 0x618c30 stores at each re-base, added to each new sample; 50 at constructioninferredcollision/eventapply#lateness-ring
0x01444floatm_facingRateHolds the facing rate in radians per second toward the queue head, from 0x618f80verified, proof onecollision/status#facing-rate-toward-the-head
0x01484floatm_facingRateTimeHolds the seconds to the queue head over which +0x144 applies; 0 turns the rate offverified, proof onecollision/status#facing-rate-toward-the-head
0x014c4int32_tm_correctionTimeHolds the ms to the queue head at arming, read as int32, the divisor of the position blend; 0 when offverified, proof onecollision/status#position-blend-arming
0x015012void *[3]m_eventsHolds the event queue header: link offset, last link, then the first CPlayerMoveEventverified, proof onecollision/events#insertion-in-time-order
0x015c4void *m_unitHolds the unit that owns the mover, the constructor's fourth argumentverified, proof onecollision/mover#construction