|
group2 0.1.0
CSE 125 Group 2
|
Per-tick capsule snapshot stored in the history ring. More...
#include <HitboxHistory.hpp>
Public Attributes | |
| uint32_t | tick = 0 |
| Server tick when the sample was recorded. 0 = unset. | |
| std::vector< WorldCapsule > | capsules |
| AnimSnapshot | anim {} |
| PR-27: animation-state snapshot captured the same tick. | |
Per-tick capsule snapshot stored in the history ring.
The capsules vector is a copy of the entity's HitboxInstance::capsules taken just after updateHitboxes() for the given tick. Storing the world-space form (rather than the bone-local form + transform) keeps the rewind code from re-running the bone math; it just swaps in the vector and we ray-test it directly.
| AnimSnapshot HitboxHistorySample::anim {} |
PR-27: animation-state snapshot captured the same tick.
Filled by pushHitboxHistory from the entity's live AnimSnapshot component, which the server's animation pass updates each tick. Used by the shot-resolution path to compare against the client's claimed animation state of the target — when the delta is small, the server can accept the client's view of the pose (PR-27b); either way the delta is logged for telemetry (PR-27a).
| std::vector<WorldCapsule> HitboxHistorySample::capsules |
| uint32_t HitboxHistorySample::tick = 0 |
Server tick when the sample was recorded. 0 = unset.