Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
How to throw a ball and make it bounce
Old
20ali20
Guest
 
Status:
Posts: n/a
Default How to throw a ball and make it bounce - 07-02-2011, 10: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
   
Reply With Quote
Old
20ali20
Guest
 
Status:
Posts: n/a
Default 07-02-2011, 12:57 PM

geeez guys i really need help here
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-02-2011, 03: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
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 07-02-2011, 03: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
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 07-02-2011, 03: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
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 07-02-2011, 04:04 PM

Quote:
Originally Posted by legolizard View Post
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:

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
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 07-02-2011, 04: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 04:14 PM.
   
Reply With Quote
Old
20ali20
Guest
 
Status:
Posts: n/a
Default 07-02-2011, 07: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
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.