Foros del Web » Creando para Internet » Flash y Actionscript »

Tiro parabolico

Estas en el tema de Tiro parabolico en el foro de Flash y Actionscript en Foros del Web. wenas. Alguein me podria decir si esta bien escrito este codigo: t=0; vo=100; angulo=-45*Math.PI/180; vox=Math.cos(angulo)*velocidad; voy=Math.sin(angulo)*velocidad; t+=0,001; x_inicial=0; y_inicial=0; _root.onEnterFrame=function() { _root.bola._x=x_inicial+vox*t; _root.bola._y=y_inicial+voy*t-4,9*t*t; vx=vox; vy=voy-9,8*t; ...
  #1 (permalink)  
Antiguo 06/10/2005, 07:41
 
Fecha de Ingreso: octubre-2005
Ubicación: barcelona
Mensajes: 9
Antigüedad: 18 años, 6 meses
Puntos: 0
Tiro parabolico

wenas.
Alguein me podria decir si esta bien escrito este codigo:

t=0;
vo=100;
angulo=-45*Math.PI/180;
vox=Math.cos(angulo)*velocidad;
voy=Math.sin(angulo)*velocidad;
t+=0,001;
x_inicial=0;
y_inicial=0;

_root.onEnterFrame=function() {

_root.bola._x=x_inicial+vox*t;
_root.bola._y=y_inicial+voy*t-4,9*t*t;
vx=vox;
vy=voy-9,8*t;
y_inicial=bola._x;
}
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas (incluyéndote)




La zona horaria es GMT -6. Ahora son las 09:35.