Alice Community How to throw a ball and make it bounce

 How to throw a ball and make it bounce
 20ali20 Guest   Status: Posts: n/a How to throw a ball and make it bounce - 07-02-2011, 11:04 AM Hi guys for my school project i need this and I dont know how to do it I already figured out that Vehicle make it hold the ball with either hand of a character but how Can i make it throw it in a realistic parabolic path way and as it hits the ground or the wall to bounce back
 20ali20 Guest   Status: Posts: n/a 07-02-2011, 01:57 PM geeez guys i really need help here
 TauTrumpsPi Senior Member     Status: Offline Posts: 399 Join Date: Mar 2011 Location: The diamond layer 07-02-2011, 04:25 PM That would require a very complicated set of code, as having something stop when it hits an object is hard enough, but having it bounce off realistically is another thing all together. Unless you want something that looks more like \/ that than a parabola, I doubt many of us can help you, if any. -------------------------------------------------------------------------------------------------------------------------- I have plenty of common sense. I just choose to ignore it. -Calvin and Hobbes Wondering about my Avatar? http://en.wikipedia.org/wiki/Tardigrade Wondering about my username? http://www.youtube.com/watch?v=jG7vhMMXagQ
 sfunk Senior Member     Status: Offline Posts: 1,112 Join Date: Mar 2011 Location: I don't know 07-02-2011, 04:53 PM well as Tau pretty much said, this is a hard task to do, but your best bet for the path it moves is just make a predetermined pathway for the ball and use dummy objects set in a parabolic path, but if you need to be able to actually control the ball to move different amounts, I can't really help there 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
 legolizard Senior Member     Status: Offline Posts: 242 Join Date: Jan 2011 Location: Aboard the Hyperion escaping the zerg. 07-02-2011, 04:59 PM This is just an idea and it may not be mathmatically but what if you try something like... Code: ```while(object's distacnce above ground>some sumber)//This is the only part that I can think will cause problems. { doTogethor { object move forward at speed "some speed" object turn forward at speed "some speed less than the one above" } }``` "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
sfunk
Senior Member

Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
07-02-2011, 05:04 PM

Quote:
 Originally Posted by legolizard This is just an idea and it may not be mathmatically but what if you try something like... Code: ```while(object's distacnce above ground>some sumber)//This is the only part that I can think will cause problems. }```
There are a few problems with this(though a good idea to use) it doesn't give a parabolic look, and using collision is kind of bad. but if you need the ability to move your character or ball before throwing, this is probably among your best bet

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..

 legolizard Senior Member     Status: Offline Posts: 242 Join Date: Jan 2011 Location: Aboard the Hyperion escaping the zerg. 07-02-2011, 05:11 PM Really I thought it looked pretty close to a parabola, you just have to tinker with the numbers a bit. Okay scratch that I actually remembered an older thread that solves most of you problems. http://alice.org/community/showthrea...ighlight=throw "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein Last edited by legolizard; 07-02-2011 at 05:14 PM.
 20ali20 Guest   Status: Posts: n/a 07-02-2011, 08:50 PM well I dont want to necessary bounce off but like when ur throw it it goes up and down on the ground for a few rounds and then stop or at least have a prabolic look when u throw it

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge