Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / ballistic trajectory

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 2nd May 2006 16:58
sorry the code is a mess


Too Sexy
Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 5th May 2006 04:19
you have to add sync rate 25 at the begginning

Mysteries Surround You
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 5th May 2006 11:19 Edited at: 5th May 2006 11:30
why is that, because the cannon moves so fast? well, the bomb is timer based so it works the same in every machine, however cannon is not. and the purpose here was to demonstrate the bomb so i didnt bother with the cannon..

EDIT: try this, it will be slow enough for fast machines.


Too Sexy
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 5th May 2006 17:38
its much more cleaner than any of my code.

Nice stuff, i'm sure i can find use for this somewhere!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th May 2006 19:09
looks great.
looks like the start of the old cannon game where two players try to hit each other

I'm not getting you down am I, Ho Look! another fancy Door?
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 5th May 2006 23:10
Here is another more Tidy and improved version:
*Gives the distance between shooting spot and hitting spot
*Gives the Peek point on the trajectory
*Gives the Time of flight

However it has some bugs which i dont understand,
range and time of flight values are wrong when the shooting point is higher than 0.0 and the hit spot is lower or higher than 0.0
Formulas are all right though..
any ideas to fix it?



Too Sexy
Doctor Duddits
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location:
Posted: 24th May 2006 15:41
that's look good

Same Shit Different Day

Login to post a reply

Server time is: 2024-11-23 03:15:16
Your offset time is: 2024-11-23 03:15:16