summaryrefslogblamecommitdiffstats
path: root/src/Entity.cpp
blob: 8f768184fd530f83ccc25e12a43f993c0f1c6e0b (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                  
#include "Entity.hpp"

VectorF Entity::DecodeVelocity(short x, short y, short z)
{
    const float ticksPerSecond = 20;
    const double velMod = 1 / 8000.0;
    return VectorF(x * velMod * ticksPerSecond, y*velMod*ticksPerSecond, z*velMod*ticksPerSecond);
}