Posted: 21st Aug 2011 18:51
This is for a Ludum Dare project, so time is of the essence.

I have an object moving along, and it turns.

I want to dampen it's speed in the direction it WAS going. Right now it has a nice sliding motion, but it's sliding a little to much. I want to dampen the effects of velocity when the sprite is moving sideways without detracting from it's forward motion in the direction it's pointing.

Any ideas? I've messed with the Physics commands a lot, but I'm having trouble piecing together how to make it behave like a car.

Here's a video to get a better idea. I just want it to change direction a little faster.
Posted: 21st Aug 2011 19:52
It seems like you need a friction level with the road, I'm not sure if its possible to add though and get the full effect, because you would want a higher friction value for the lateral motion and less for in line. I guess if you kept track of some inertia vector along with the acceleration vector and when they don't line up apply a higher friction between the car and the road?
Posted: 21st Aug 2011 20:38
I managed to find a reasonable solution (at least for the Ludum Dare contest entry) by increasing the value of SetSpritePhysicsDamping().

Using that means increasing the applied force for movement, but it seems to be giving a close approximation to what I was after.