Vectors
#4

Just so there is no confusion here is Nero_3D's function to get the camera facing angle.

pawn Код:
Float: GetPlayerCameraFacingAngle(playerid)
{
    new Float: vX, Float: vY;
    if(GetPlayerCameraFrontVector(playerid, vX, vY, Float: playerid))
    {
        if((vX = -atan2(vX, vY)) < 0.0) return vX + 360.0;
        return vX;
    }
    return 0.0;
}
Reply


Messages In This Thread
Vectors - by adri1 - 28.02.2015, 13:09
Re: Vectors - by Pottus - 28.02.2015, 13:14
Respuesta: Re: Vectors - by adri1 - 28.02.2015, 13:16
Re: Vectors - by Pottus - 28.02.2015, 13:22
Re: Vectors - by Pottus - 28.02.2015, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)