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. | |
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.
| float gme::InterpolationData::currentRotation |
Current interpolated rotation.
Definition at line 45 of file GameMulti.hpp.
| float gme::InterpolationData::currentX |
Definition at line 42 of file GameMulti.hpp.
| float gme::InterpolationData::currentY |
Current interpolated position.
Definition at line 42 of file GameMulti.hpp.
| float gme::InterpolationData::smoothFactor |
Interpolation smoothing factor (0.0-1.0)
Definition at line 43 of file GameMulti.hpp.
| float gme::InterpolationData::targetRotation |
Target rotation angle.
Definition at line 44 of file GameMulti.hpp.
| float gme::InterpolationData::targetVx |
Definition at line 41 of file GameMulti.hpp.
| float gme::InterpolationData::targetVy |
Target velocity from server.
Definition at line 41 of file GameMulti.hpp.
| float gme::InterpolationData::targetX |
Definition at line 40 of file GameMulti.hpp.
| float gme::InterpolationData::targetY |
Target position from server update.
Definition at line 40 of file GameMulti.hpp.