group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
entity_interpolation::SampleInputs Struct Reference

PR-28: full sample payload. More...

#include <EntityInterpolation.hpp>

Collaboration diagram for entity_interpolation::SampleInputs:
[legend]

Public Attributes

glm::vec3 position {0.0f}
glm::vec3 velocity {0.0f}
float yaw = 0.0f
float pitch = 0.0f
std::uint8_t moveMode = 0
std::uint8_t wallRunSide = 0
bool grounded = false
bool sprinting = false
bool crouching = false
AnimSnapshot anim {}
 PR-29: server's animation state at this snapshot tick.

Detailed Description

PR-28: full sample payload.

appendSample takes one of these per snapshot apply.

Member Data Documentation

◆ anim

AnimSnapshot entity_interpolation::SampleInputs::anim {}

PR-29: server's animation state at this snapshot tick.

Sourced from the entity's AnimSnapshot component (replicated in the Synced tuple).

◆ crouching

bool entity_interpolation::SampleInputs::crouching = false

◆ grounded

bool entity_interpolation::SampleInputs::grounded = false

◆ moveMode

std::uint8_t entity_interpolation::SampleInputs::moveMode = 0

◆ pitch

float entity_interpolation::SampleInputs::pitch = 0.0f

◆ position

glm::vec3 entity_interpolation::SampleInputs::position {0.0f}

◆ sprinting

bool entity_interpolation::SampleInputs::sprinting = false

◆ velocity

glm::vec3 entity_interpolation::SampleInputs::velocity {0.0f}

◆ wallRunSide

std::uint8_t entity_interpolation::SampleInputs::wallRunSide = 0

◆ yaw

float entity_interpolation::SampleInputs::yaw = 0.0f

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