Advertisement
Advertisement
| 10.06.2008 at 02:09PM PDT, ID: 23791986 | Points: 250 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: |
dt = .3f;
gravity = 9.8f;
this.VelocityX = (float)(this.initialVelocity * (float)Math.Cos(Angle) * t);
this.VelocityY = (float)(this.initialVelocity * (float)Math.Sin(Angle) * t - gravity * t * t / 2);
this.x = this.VelocityX + this.InitialX;
this.y = -this.VelocityY + this.InitialY;
t += dt;
|