Alice Community Converting from degrees to revolutions

 Converting from degrees to revolutions
 hotsauce15183 Guest   Status: Posts: n/a Converting from degrees to revolutions - 10-17-2008, 06:03 PM I'm making a game and I want the user to be able to tell the object to turn from (-180 to 180) degrees. Thanks if anyone can help me with this.
 Scott Guest   Status: Posts: n/a 10-18-2008, 12:45 AM isn't that a 360? which is 1 revolution?
 hotsauce15183 Guest   Status: Posts: n/a 10-18-2008, 10:48 AM What I mean't to say Ok there is a game that i'm creating with user input The user can put in any number from (-180 to make the ball turn straight to the left or 180 to make the ball turn straight to the right and of course the other numbers in between will be the other angles 0 for straight ahead etc. After the user puts in the number the ball will move in that direction. The point of this game is to be like a putt golf simulation.
 Scott Guest   Status: Posts: n/a 10-18-2008, 07:08 PM ohhhhh. I gotcha. So when the person puts the degrees in it will convert to revolutions. I don't know how to do that. sorry.
 hotsauce15183 Guest   Status: Posts: n/a 10-19-2008, 10:53 AM yea thats it. but thanks anyway.
 DrJim Guest   Status: Posts: n/a 10-19-2008, 12:29 PM For the basic conversion, just have the user put his number in and then divide that by 360. (180/360 = 0.5, etc.) If you want to like - "If entry is <0 turn left else turn right."

 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