|
-
Jan 8th, 2003, 09:16 AM
#36
Member
One more thing CornBee,
The drag MUST be proportional to the square of the velocity
DragForce=-k*v*v
Acc=DragForce/mass
v=v-Acc
vx=v*cos(Angle)
vy=v*sin(Angle)+gravity
v=sqr(vx*vx+vy*vy)
if vx<>0 then
Angle=Atn(vy/vx)
End if
posX=posX+vx
posY=posY + vy
Last edited by anjulpa; Jan 8th, 2003 at 09:24 AM.
 ppl saw this
Die, ***** Die !
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
|