Check creature.orientation and gameobject.orientation range

please prefix <cmath> functions with std:: .
is data.orientation float ? if so, M_PI should be cast to float too through float(M_PI)