GetCameraFacingAngle?
#7

@BroZeus - Doesn't seem correct too much math here is Nero's solution from some time ago.

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;
}
Texture studio uses this in flymode when creating the texture viewer.
Reply


Messages In This Thread
GetCameraFacingAngle? - by De4dpOol - 25.02.2015, 09:55
Re: GetCameraFacingAngle? - by Golf - 25.02.2015, 10:05
Re: GetCameraFacingAngle? - by De4dpOol - 25.02.2015, 10:21
Re: GetCameraFacingAngle? - by Gammix - 25.02.2015, 12:12
Re: GetCameraFacingAngle? - by -=Dar[K]Lord=- - 25.02.2015, 12:22
Re: GetCameraFacingAngle? - by BroZeus - 25.02.2015, 13:50
Re: GetCameraFacingAngle? - by Pottus - 25.02.2015, 14:30
Re: GetCameraFacingAngle? - by BroZeus - 26.02.2015, 09:12
AW: Re: GetCameraFacingAngle? - by Nero_3D - 26.02.2015, 13:24
Re: AW: Re: GetCameraFacingAngle? - by BroZeus - 26.02.2015, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)