mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: improve code consistency
This commit is contained in:
parent
e019de8dcd
commit
0b606b21fd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user