Alice Community  

Go Back   Alice Community > Educators > Teaching with Alice

Reply
 
Thread Tools Display Modes
Math in Alice
Old
  (#1)
killercatfish
Junior Member
 
Status: Offline
Posts: 5
Join Date: May 2009
Location: Denver
Default Math in Alice - 05-26-2009, 09:36 PM

What is the main usefulness of Math in Alice?

Is there any way to use it to help make object move and act in more life like manner?

Thanks,

Josh
   
Reply With Quote
Old
  (#2)
lanceA
Banned
 
lanceA's Avatar
 
Status: Offline
Posts: 484
Join Date: Mar 2006
Location: Baltimore, MD
Default 05-26-2009, 10:03 PM

To answer your question: Math will not help a person to "...act in a more life like manner."

However, math will help you prevent the person from walking THROUGH walls. It will help the person know when his gun has no bullets or he has no lifes left.

It will help you determine when the ball is near a bumper in a pin-ball game.

But no, math will not make a penguin walk better.
   
Reply With Quote
Old
  (#3)
Ayyamana
Junior Member
 
Status: Offline
Posts: 11
Join Date: Jan 2010
Location: In a dream world
Default 01-07-2010, 09:32 PM

Not necessarily, I used a function to determine the speed a chicken should walk at for it to look natural.
   
Reply With Quote
Old
  (#4)
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 2,153
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-07-2010, 10:01 PM

I was thinking about using math to calculate specific angles at which a person's body parts should turn to move realistically, as well as increments in which to move so that those movements could be put into a while loop and stopped on a dime by setting a value to false.
   
Reply With Quote
Old
  (#5)
Ayyamana
Junior Member
 
Status: Offline
Posts: 11
Join Date: Jan 2010
Location: In a dream world
Default 01-08-2010, 03:59 PM

How exactly would you use? What variables?
   
Reply With Quote
Old
  (#6)
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 2,153
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-08-2010, 05:31 PM

I was planning on having a maximum and minimum value which represent the very edge of the motion. When one of those edges are reached, the body part would change direction and the count would be reversed towards the other extreme and keep moving based on the counter using the increments I mentioned (a division of the total angle the body part would have to turn).

By doing this, I could have the person stop walking immediately after he's knocked unconscious, instead of having to wait until the animation completes.
   
Reply With Quote
Old
  (#7)
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 2,233
Join Date: Jul 2009
Location: United States
Default 01-08-2010, 06:14 PM

Alice is not much of an Exactly Exact position program, its the basics


_______________________________________

A-TOM STUDIOS - Update
Full Release date - Unknown

Are you interested in playing home made video games? Check out...

http://sites.google.com/site/cavecravergame/home
_________________________________________

If you need help... Ask me on my page, I will probably answer within a day!
   
Reply With Quote
Old
  (#8)
Ayyamana
Junior Member
 
Status: Offline
Posts: 11
Join Date: Jan 2010
Location: In a dream world
Default 01-09-2010, 04:44 PM

Interesting... Shoulda thought of it myself...
   
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


All times are GMT -5. The time now is 12:39 AM.


Copyright ©2010, Carnegie Mellon University