Alice Community Check an object's angle

 Check an object's angle
 Michael Guest   Status: Posts: n/a 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!
 Michael Guest   Status: Posts: n/a 11-21-2005, 01:35 AM Nevermind, got 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