|
group2 0.1.0
CSE 125 Group 2
|
Implementation of append + bracket-search sampling for InterpolationBuffer. More...
#include "EntityInterpolation.hpp"#include "ecs/components/InterpolationBuffer.hpp"#include <cstddef>#include <entt/entt.hpp>#include <glm/common.hpp>#include <glm/gtc/constants.hpp>Namespaces | |
| namespace | entity_interpolation |
Functions | |
| void | entity_interpolation::appendSample (entt::registry ®istry, entt::entity e, Uint64 captureNs, const SampleInputs &inputs) |
Append a snapshot sample at captureNs into the entity's InterpolationBuffer, creating the component on first call. | |
| InterpolatedTransform | entity_interpolation::sample (const entt::registry ®istry, entt::entity e, Uint64 renderTimeNs, const glm::vec3 &fallbackPos, float fallbackYaw) |
Look up e's interpolated transform at renderTimeNs. | |
Implementation of append + bracket-search sampling for InterpolationBuffer.