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.

Newcomers AppGameKit Corner / algorithm for parabolic arrangement/algorithm

Author
Message
hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 25th Feb 2017 01:28
Hi all.

Im tweaking my badminton game to have a better shuttle movement. Im trying to make a good parabolic curve/arc. Let say i have a starting point and destination point and between these point i have around another 9 points will equal distance. How do i plot it to make a nice parabolic curve?


Thanks
damothegreat
User Banned
damothegreat
User Banned
Posted: 25th Feb 2017 11:18
Or maybe this http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/

Have fun with this challenge

But we shall all need it at some point to create such apps that do require it.

On the other hand - we may have some smarty pants that has already done it here

Damo
damothegreat
User Banned
Posted: 25th Feb 2017 17:22 Edited at: 25th Feb 2017 17:53
Maths does my head in, but this is closest Ill ever get to what your aiming for



Damo
hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 25th Feb 2017 22:49
Ok.thanks. but i need time to digest this.Poor me.
damothegreat
User Banned
Posted: 25th Feb 2017 22:59
You need to time to digest what ive written - I needed about 10 years to digest Parabolic Equations to get written into code lol

I'm sure you will be ok with it

Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 27th Feb 2017 11:44
Excellent exemple, thanks Damo
AGK2 tier1 - http://www.dracaena-studio.com
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Feb 2017 15:32
If you want your curve to go through (or close to within a certain deviation limit) a set amount of points, you should look at normal distribution.

Or, you could use a projectile motion algorithm.
http://www.zimnox.com/resources/articles/math/?ar=m002#13

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-03-28 23:23:26
Your offset time is: 2024-03-28 23:23:26