|
-
Feb 9th, 2002, 03:17 PM
#1
Thread Starter
New Member
Projectile Wind
Hi,
I am working on a game and i need a little help. In the game there are some projectiles(2d) being thrown. If someone could please help me add wind I would appriciate it. This is what i have so far in my loop. Everthing works so far, i just want a varible that willadd wind because i want to be able to change the strength and direction(left or right) at certain points. Thank you 
do
.xcord = (Power(X) * Cos(Angle(X) * 3.14159 / 180) * .time)+ .startx
.ycord = .starty - (Power(X) * Sin(Angle(X) * 3.14159 / 180) * .time - 4.9 * .time ^ 2)
.time = .time + 0.1
loop
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|