IsVehicleUpsideDown
#1

Maybe someone can use this code snippet:
pawn Код:
stock IsVehicleUpsideDown(vehicleid)
{
    new Float:quat_w,Float:quat_x,Float:quat_y,Float:quat_z;
    GetVehicleRotationQuat(vehicleid,quat_w,quat_x,quat_y,quat_z);
    new Float:y = atan2(2*((quat_y*quat_z)+(quat_w*quat_x)),(quat_w*quat_w)-(quat_x*quat_x)-(quat_y*quat_y)+(quat_z*quat_z));
    return (y > 90 || y < -90);
}
Reply


Messages In This Thread
IsVehicleUpsideDown - by hencz - 13.08.2010, 11:20
Re: IsVehicleUpsideDown - by Johnny_Xayc - 13.08.2010, 11:28
Re: IsVehicleUpsideDown - by iggy1 - 13.08.2010, 11:34
Re: IsVehicleUpsideDown - by Kayla.S - 13.08.2010, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)