Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,295 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | chip programmers | 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