Recast: improve code consistency

This commit is contained in:
Kawe Mazidjatari 2024-09-04 22:47:36 +02:00
parent e019de8dcd
commit 0b606b21fd

View File

@ -2203,7 +2203,7 @@ float dtCalcOffMeshRefYaw(const float* spos, const float* epos)
void dtCalcOffMeshRefPos(const float* spos, float yawRad, float offset, float* res)
{
const float yawDeg = yawRad * (RD_PI/180.0f);
const float yawDeg = yawRad * (180.0f/RD_PI);
const float dx = offset*rdMathCosf(yawDeg);
const float dy = offset*rdMathSinf(yawDeg);