Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I allow a car to realistically "drift" in Alice?
Old
davinci6
Guest
 
Status:
Posts: n/a
Exclamation How do I allow a car to realistically "drift" in Alice? - 05-07-2009, 01:58 PM

How would I code a car to make it realistically drift (think "Fast and Furious: Tokyo Drift")?
   
Reply With Quote
Old
HisWorld
Guest
 
Status:
Posts: n/a
Default 05-07-2009, 07:53 PM

Well, first let me ask you how much programming experience do you have? Can you figure out a way to add some simulated inertia? Meaning your car gradually builds up speed?

I doubt you will be able to complete this or understand what I am saying without that level of expertise.

As I have never done this or seen it done I can't be for certain the best method. But I bet the best method would be to create a very small object starting inside the vehicle you intend to use. Have that object be the one controling the speed and direction of your vehicle.

I made a world that might get you started in the right direction, I tried for maybe an hour to be able to manipulate the orientation of objects in a way other than simply setting one = to another.

No success but I bet you can figure it out Keep me updated.
Attached Files
File Type: a2w alice'sworld.a2w (2.43 MB, 46 views)
   
Reply With Quote
Old
Scott300
Senior Member
 
Status: Offline
Posts: 80
Join Date: Feb 2009
Location: Ohio
Default 05-08-2009, 08:53 AM

Quote:
Originally Posted by HisWorld View Post
Well, first let me ask you how much programming experience do you have? Can you figure out a way to add some simulated inertia? Meaning your car gradually builds up speed?

I doubt you will be able to complete this or understand what I am saying without that level of expertise.

As I have never done this or seen it done I can't be for certain the best method. But I bet the best method would be to create a very small object starting inside the vehicle you intend to use. Have that object be the one controling the speed and direction of your vehicle.

I made a world that might get you started in the right direction, I tried for maybe an hour to be able to manipulate the orientation of objects in a way other than simply setting one = to another.

No success but I bet you can figure it out Keep me updated.
Wow thats a really good start to drifting HisWorld I really like the stuff you have been posting on the forum =), I mean honestly with that all you would need to do is make an animation for a fast turn and mess with he speed as your doing the drift to make it look like it.


in a new method called when you hit shift

if your moveing currently //(I forgot what var you used lol)
{
while world.drifting == true //while pressing shift make this true when shift is let go of make it false
{
if world.isturningleft == true
//make it so when you turn left it sets isturningleft to true and when your turning right set it false
{
do together
{
method slowdown var setnewspeed = 3 and set drift == true
turn car left .05
}
method speedup setnewspeed = 3
}
else
{
turn car right .05
}

and in slowdown and speedup make it so setnewspeed when its not 0 will change the current speed to w/e the var is and make it so when drift == true it changes how speed is sloweddown/speedup I mean at this point its all just makeing it look cool ^_^

Last edited by Scott300; 05-08-2009 at 09:03 AM.
  Send a message via AIM to Scott300 Send a message via MSN to Scott300  
Reply With Quote
Reply

Tags
alice, car, drift, drive, realistic

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