r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
gme::InterpolationData Struct Reference

Data structure for entity position interpolation. More...

#include <GameMulti.hpp>

+ Collaboration diagram for gme::InterpolationData:

Public Attributes

float targetX
 
float targetY
 Target position from server update.
 
float targetVx
 
float targetVy
 Target velocity from server.
 
float currentX
 
float currentY
 Current interpolated position.
 
float smoothFactor
 Interpolation smoothing factor (0.0-1.0)
 
float targetRotation
 Target rotation angle.
 
float currentRotation
 Current interpolated rotation.
 

Detailed Description

Data structure for entity position interpolation.

Data structure for smooth entity interpolation (forward declaration)

Stores target and current position/velocity data for smooth entity movement. Used to interpolate entity positions between server updates to provide smooth visual rendering despite network latency.

Definition at line 38 of file GameMulti.hpp.

Member Data Documentation

◆ currentRotation

float gme::InterpolationData::currentRotation

Current interpolated rotation.

Definition at line 45 of file GameMulti.hpp.

◆ currentX

float gme::InterpolationData::currentX

Definition at line 42 of file GameMulti.hpp.

◆ currentY

float gme::InterpolationData::currentY

Current interpolated position.

Definition at line 42 of file GameMulti.hpp.

◆ smoothFactor

float gme::InterpolationData::smoothFactor

Interpolation smoothing factor (0.0-1.0)

Definition at line 43 of file GameMulti.hpp.

◆ targetRotation

float gme::InterpolationData::targetRotation

Target rotation angle.

Definition at line 44 of file GameMulti.hpp.

◆ targetVx

float gme::InterpolationData::targetVx

Definition at line 41 of file GameMulti.hpp.

◆ targetVy

float gme::InterpolationData::targetVy

Target velocity from server.

Definition at line 41 of file GameMulti.hpp.

◆ targetX

float gme::InterpolationData::targetX

Definition at line 40 of file GameMulti.hpp.

◆ targetY

float gme::InterpolationData::targetY

Target position from server update.

Definition at line 40 of file GameMulti.hpp.


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