Bug: Angular Velocity doesn't work on motorcycles
#1

^ Topic says it all.

Was it intentional? or.. a bug, just let me know so I can stop trying ;\
Reply
#2

Yes, I tried to do front flips and back flips and fail.

pawn Код:
//Test code
    if(newkeys & KEY_ANALOG_UP)
    {
        new Float:vel[3], Float:angle;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2]);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2] + 0.2);
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), floatsin(-angle - 90.0, degrees)/5.0, floatcos(-angle - 90.0, degrees)/5.0, 0.0);        
    }
    if(newkeys & KEY_ANALOG_DOWN)
    {
        new Float:vel[3], Float:angle;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2]);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2] + 0.2);
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), floatsin(-angle + 90.0, degrees)/5.0, floatcos(-angle + 90.0, degrees)/5.0, 0.0);                
    }
    if(newkeys & KEY_ANALOG_LEFT)
    {
        new Float:vel[3], Float:angle;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2]);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2] + 0.15);
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), floatsin(-angle + 90.0, degrees)/5.0, floatcos(-angle + 90.0, degrees)/5.0, 0.09);        
    }
    if(newkeys & KEY_ANALOG_RIGHT)
    {
        new Float:vel[3], Float:angle;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2]);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vel[0], vel[1], vel[2] + 0.15);
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), floatsin(-angle + 90.0, degrees)/5.0, floatcos(-angle + 90.0, degrees)/5.0, -0.09);        
    }
Reply
#3

Same here...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)