Gamestudio Links
Zorro Links
Newest Posts
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
How to select between IB accounts by script?
by Jack_Zodiac. 06/12/26 23:17
Zorro tutorial ideas?
by pr0logic. 06/12/26 13:36
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, 1 invisible), 2,064 guests, and 3 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