Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to calculate a flight arc.... #345469
10/26/10 17:50
10/26/10 17:50
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
I am programming a game where i need to have an arrow fly across the screen - and i have no idea how to calculate the arc of its flight path.

does anyone have any suggestions?

Re: How to calculate a flight arc.... [Re: Caermundh] #345470
10/26/10 17:58
10/26/10 17:58
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
you could ponder around with pow(x, 2), or use sin on the z element to make your arrow go up and down, or if you're really inclined use beziers. (hint: use sin).


Click and join the 3dgs irc community!
Room: #3dgs
Re: How to calculate a flight arc.... [Re: Joozey] #345477
10/26/10 18:54
10/26/10 18:54
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
on my website in the demos area , i have a mortar cannon demo , that deals with arc of decent. its writen in free lite c 1.70

Re: How to calculate a flight arc.... [Re: badapple] #345504
10/26/10 23:14
10/26/10 23:14
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
@badapple:

I downloaded your demo, but it is in .7z format? Is that a type of compression? how do i open it up to look at your code?

Last edited by Caermundh; 10/26/10 23:14.
Re: How to calculate a flight arc.... [Re: Caermundh] #345506
10/26/10 23:32
10/26/10 23:32
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England

Re: How to calculate a flight arc.... [Re: MrGuest] #345509
10/27/10 00:49
10/27/10 00:49
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
google 7zip , its a free compression tool like winzip but better

and your in luck too , that demo is one of the rare ones i made that is well commented , and the read me file explains clearly how i achieved the effect. good luck with your game smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1