Obtener velocidad angular de un vehнculo
#3

їPrimero la coordenada Z no ha de ser la que de la altura?

En un entorno bidimensional es asн

Y
Y
Y
Y
Y
Y
Y
Y
XXXXXXXXXXXXXXXXXXX

Por lo cual serб la Z ya que en el entorno tridimensional es la profundidad

Lo segundo velocidad angular? prueba con esto, esta hecho la verdad un poco a ojo :S no se si irб bien


new vehicleid,Float:velocidadx,Float:velocidady,Float: velocidadz,Float:velocidad,string[256];
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehicleid,velocidadx,velocidady ,speed_z);
velocidad = floatsqroot(((velocidady*velocidady)+velocidadx*ve locidadx))+(velocidadz*velocidadz))*137;

velocidad -> en float
floatround(final_speed,velocidad) -> en int


Un saludo
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)