Author Topic: ActionScript gerak parabola  (Read 2251 times)

0 Members and 1 Guest are viewing this topic.

Offline peter93

  • Numpang Lewat
  • *
  • Posts: 2
  • Reputasi: 0
  • Lokasi: krian
  • Jenis Kelamin: Laki-laki
ActionScript gerak parabola
« on: 02 September 2011, 14:34:22 »
mohon di koreksi, karena pada waktu dijalankan kok benda( bola dan lantai ) nya tidak nampak. Saya masih pemula, mohon bantuannya. terima kasih.


y0=bola_01._y;
x0=bola_01._x;
R=0.5*bola_01._width;
x0=20;
y0=290;
g=10;
v0=50;
gerak=false;
t=0;
//waktu awal

this.onEnterFrame=function(){
   _y=y0;
   _x=x0;
//gerak bola
if(gerak){
   t=t+0.05
}
sudut = _root.ubah_sudut.level;
alpha = sudut-90;
radian = alpha*3.14/180;
vx=v0* math.cos(radian)*t;
vy=v0* math.sin(radian)* g* t;
x=x0 + v0* math.cos(radian)* g* t;
y=y0 + v0* math.sin(radian)*t- 0.5* g* t* t;
tmax=v0* math.sin(radian)/ g;
}





Forum Informatika

ActionScript gerak parabola
« on: 02 September 2011, 14:34:22 »
Sponsored Links:


Offline 1nf0rm4t1c5

  • Administrator
  • *
  • Posts: 1150
  • Reputasi: 15
  • Informatics Developer
    • Forum Informatika
  • Lokasi: Indonesia
  • Jenis Kelamin: Laki-laki
Re: ActionScript gerak parabola
« Reply #1 on: 28 September 2011, 10:01:13 »
Coba cek tulisan orang di sini

Code: [Select]
http://www.actionscript.org/forums/showthread.php3?t=180987
http://www.actionscript.org/forums/showthread.php3?t=39168
http://stackoverflow.com/questions/3608977/intersection-of-parabolic-curve-and-line-segment