group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HitboxHistorySample Struct Reference

Per-tick capsule snapshot stored in the history ring. More...

#include <HitboxHistory.hpp>

Collaboration diagram for HitboxHistorySample:
[legend]

Public Attributes

uint32_t tick = 0
 Server tick when the sample was recorded. 0 = unset.
std::vector< WorldCapsulecapsules
AnimSnapshot anim {}
 PR-27: animation-state snapshot captured the same tick.

Detailed Description

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.

Member Data Documentation

◆ anim

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).

◆ capsules

std::vector<WorldCapsule> HitboxHistorySample::capsules

◆ tick

uint32_t HitboxHistorySample::tick = 0

Server tick when the sample was recorded. 0 = unset.


The documentation for this struct was generated from the following file: