Alice Community How do I make an object move in a parabolic pathway

 How do I make an object move in a parabolic pathway
 pure kirk Guest   Status: Posts: n/a How do I make an object move in a parabolic pathway - 03-21-2011, 12:28 PM I have a cannon shooting but it goes straight heres my code rightnow i made it when i press z it does this method: sphere set opacity to 1 dotogether: sphere move forward 150m sphere set opacity to 0 do together off sphere move backward 150m
 Well, here's my way (and maybe another way)
 Matchewawa Member   Status: Offline Posts: 32 Join Date: Feb 2011 Well, here's my way (and maybe another way) - 03-21-2011, 06:05 PM My way would simply be to make the cannon ball move up as it is moving forward, and then halfway through the shot, start moving back down. However, then it is shaped somewhat like an up side down V. I believe if a parabolic way is possible, it would have something to do with the sin or cos in the world functions, since when you graph sine's and cosine's, they do a sort of parabola.
 reuben2011 Senior Member     Status: Offline Posts: 489 Join Date: Sep 2009 Location: Hawaii 03-21-2011, 06:11 PM Why do people keep thinking that the motion path of a object that is thrown up in the air resembles that of a sin/cos curve!? It is based on a parabolic curve! I'll try to find some physics formulas from my last years physics class and make a sample program. Projects -Escape the Kitchen -That ninja animation -Hill Collision Upcoming Projects -Some penguin adventure game?
sfunk
Senior Member

Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
03-21-2011, 07:23 PM

Quote:
 Originally Posted by reuben2011 Why do people keep thinking that the motion path of a object that is thrown up in the air resembles that of a sin/cos curve!? It is based on a parabolic curve! I'll try to find some physics formulas from my last years physics class and make a sample program.
the best formula to use would be f(x)=-16t^2 +s(t)+V(t)

atleast i think that is the formula to show the shape of of an object being thrown/shot. it has been awhile since i used it but you have the effect of gravity as long as you have your intial velocity and hieght you can plug it all in and get the shape you want.

EDIT: oh and if im wrong with that equation hopefully someone can correct it.

If you are stuck on a project, check out the tutorials I made here at this link:

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

Last edited by sfunk; 03-21-2011 at 07:45 PM.

debussybunny563
Senior Member

Status: Offline
Posts: 852
Join Date: May 2010
03-21-2011, 08:04 PM

Quote:
 Originally Posted by sfunk the best formula to use would be f(x)=-16t^2 +s(t)+V(t) atleast i think that is the formula to show the shape of of an object being thrown/shot. it has been awhile since i used it but you have the effect of gravity as long as you have your intial velocity and hieght you can plug it all in and get the shape you want. EDIT: oh and if im wrong with that equation hopefully someone can correct it.
That equation is used to determine the height of an object after a certain amount of time, with gravity and the initial velocity taken into account.

Also, in regards to reuben's comment, sine and cosine are not parabolic. It is rather an equation of the form y = x ^ 2 (y equals x squared). As you can see in the equation at the top, it is f(x) = -16 * t squared (plus a bunch of other gobbly-gook), so the graph of this function would be a parabola.

With that stuff out of the way, the easiest way would be something like what's below. The world is attached as well. It's a simple example though. You'll have to modify it for the context within your world.
Attached Images
 ballparabola01.JPG (39.2 KB, 94 views)
Attached Files
 ballparabola.a2w (169.9 KB, 40 views)

Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.

 sfunk Senior Member     Status: Offline Posts: 1,112 Join Date: Mar 2011 Location: I don't know 03-21-2011, 08:18 PM well im glad someone was able to correct that, like i said, i wasn't sure if that was correct or not, it has been so long since i have worked with projectiles haha xD If you are stuck on a project, check out the tutorials I made here at this link: http://alice.org/community/showthread.php?p=36778#post36778 There are lots of tutorials on it so far, including some youtube videos, check it out Or.. Go to my youtube channel to check out my alice 2.2 tutorials I have there.. http://www.youtube.com/user/sfunk1992?feature=mhsn
 debussybunny563 Senior Member     Status: Offline Posts: 852 Join Date: May 2010 03-21-2011, 08:28 PM Taking Algebra II, and we did some stuff with parabolic functions and cubic functions and whatnot a while back. Projectiles and dropping stuff off of cliffs were the "real-world applications" for those parabolic functions. Good stuff. Last edited by debussybunny563; 12-21-2012 at 12:00 AM. |--------------------------------------------------------------------------------------------------| |Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 | |--------------------------------------------------------------------------------------------------| I have been dead for quite some time now; not much hope for resurrection.
 sfunk Senior Member     Status: Offline Posts: 1,112 Join Date: Mar 2011 Location: I don't know 03-21-2011, 08:34 PM Yeah, im taking calculus right now and working with parabolic functions to determine projectiles is something i did about two years ago, so my memory is a little fuzzy on it my brain is wrapped around limits and anti/derivatives right about now haha If you are stuck on a project, check out the tutorials I made here at this link: http://alice.org/community/showthread.php?p=36778#post36778 There are lots of tutorials on it so far, including some youtube videos, check it out Or.. Go to my youtube channel to check out my alice 2.2 tutorials I have there.. http://www.youtube.com/user/sfunk1992?feature=mhsn
 reuben2011 Senior Member     Status: Offline Posts: 489 Join Date: Sep 2009 Location: Hawaii 03-22-2011, 05:43 AM Code: ``` [ ] integral [ d(cabin) ] [ __________ ] = natural log cabin ! XD [ cabin ]``` Projects -Escape the Kitchen -That ninja animation -Hill Collision Upcoming Projects -Some penguin adventure game?
sfunk
Senior Member

Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
03-22-2011, 05:47 PM

Quote:
 Originally Posted by reuben2011 Code: ``` [ ] integral [ d(cabin) ] [ __________ ] = natural log cabin ! XD [ cabin ]```
AHHH smart joke!! :O

If you are stuck on a project, check out the tutorials I made here at this link:

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..