Alice Community  

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

Reply
 
Thread Tools Display Modes
Car physics?
Old
MaverickLeader
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jun 2012
Location: California
Default 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!
   
Reply With Quote
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 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.
   
Reply With Quote
Old
MaverickLeader
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jun 2012
Location: California
Default 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!
   
Reply With Quote
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 07-17-2012, 12:01 PM

I meant tip slightly.
   
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



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.