Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Check an object's angle
Old
Michael
Guest
 
Status:
Posts: n/a
Default Check an object's angle - 11-08-2005, 02:59 AM

I'm trying to make a lunar lander game for an open ended project. This program will only utilize two of Alice's three dimensions. In this program I want to have the lunar lander object fall to the ground with a set acceleration. My plan for accomplishing this is to create a method which makes the lunar lander move down. The distance it moves down is calculated every tenth of a second and is determined by the function D= ut + .5at where D is distance and u is initial acceleration.

This should solve the problem of making the lander fall down, but what I'd next like to do is create a method, activated by the user pressing up, which accelerates the lander forward. This would check the veolocity with which the lander is falling and the thrust added by the acceleration and make a determination about how much to move it up. This would move the lander right and up (possibly at negative amounts depending on the orientation) but would require knowledge of the orientation in order to be able to establish vectors. What I'd really like to do is get the object's angular orientation in degrees but I've got no idea how to do this or if it's possible. Any help is much appreciated!
   
Reply With Quote
 

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.