Alice Community Car physics?
 User Name Remember Me? Password

 Thread Tools Display Modes
 Car physics?
 MaverickLeader Junior Member   Status: Offline Posts: 2 Join Date: Jun 2012 Location: California Car physics? - 07-17-2012, 12:01 AM Hello there, I'd like to learn how to make my car move like the cars in this video of one of my favorite arcade racers: Wangan Midnight Maximum Tune 3DX+ http://www.youtube.com/watch?v=tFyPXu7cWVE Thanks in advance! An ALICE beginner!
 drellem Member     Status: Offline Posts: 35 Join Date: Jun 2012 07-17-2012, 02:31 AM I don't have time to investigate now, but here are my initial thoughts: 1.That game doesn't have very realistic physics. 2.When you turn the game seems to: turn your car, adjust the camera to stay behind the car, and tip the car very slightly. 3.In reality your car would also keep moving in the original direction proportional to your speed. I suggest copying these actions (3) optional, depending on what you want, and set a variable world.speed. You will also need to have acceleration. One way to do this is to have an event like: While the key 'w' is pressed Begin: None During: if world.speed < 100 World.speed = world.speed times .001 +0.1 End: None You will want to have an infinite loop throughout your game something like: While true Car.move forward world.speed if world.speed > 0.5 world.speed = 0 Else: world.speed = world.speed/1.11 You can adjust these numbers to whatever. Hope this helps you.
 MaverickLeader Junior Member   Status: Offline Posts: 2 Join Date: Jun 2012 Location: California 07-17-2012, 11:26 AM Thanks, but what do you mean "tip lightly"? Also the game isn't supposed to be realistic. After all, it is an ARCADE racer An ALICE beginner!
 drellem Member     Status: Offline Posts: 35 Join Date: Jun 2012 07-17-2012, 12:01 PM I meant tip slightly.

 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