The positions of the enemies over the last tuning::position_history_ticks ticks.
Definition position_history.hpp:25
R-Type game code, built on the Aegis2D engine.
Definition enemy_scripts.hpp:16
void find_rewound_contacts(aegis2d::ecs::Registry ®istry, const PositionHistory &history, std::uint64_t tick, const std::function< std::uint32_t(aegis2d::ecs::Entity)> &rewind_of, std::vector< aegis2d::ecs::Contact > &contacts)
Finds the contacts of the player missiles with the enemies as their shooters saw them.
std::uint32_t rewind_ticks(std::chrono::nanoseconds rtt, std::chrono::nanoseconds interpolation) noexcept
How many ticks back a player sees the enemies.
Where the enemies were at each of the last ticks, for lag compensation.