Gamestudio Links
Zorro Links
Newest Posts
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/17/26 07:16
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Martin_HH, 1 invisible), 2,964 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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