Slowing left and right velocities...
Hi guys,
I currently have an actor in my scene, you can press up to make it travel forwards relative to the actor. You can press left and right to rotate it in those directions.
Problem is, when you turn and keep on moving forwards, it keeps moving to the side that you turned, how can I prevent this? I tried to slowly decrease the x and y velocities but the problem with that is that it is relative to the scene not actor
Basically how to improve steering?
Thanks guys
I currently have an actor in my scene, you can press up to make it travel forwards relative to the actor. You can press left and right to rotate it in those directions.
Problem is, when you turn and keep on moving forwards, it keeps moving to the side that you turned, how can I prevent this? I tried to slowly decrease the x and y velocities but the problem with that is that it is relative to the scene not actor

Basically how to improve steering?
Thanks guys

Comments
So you can make a rule :
When ALL -
"Game.right" IS false
"Game.left" IS false
Constrain self.linear.velocity.X TO self.linear.velocity.X*0.95
This will slow your actor down if you don't press the left/right buttons .
It wont be linear x velocity because it might not be facing in that particular direction, so you could be slowing it when it is travelling forwards.
It's really simple, only problem is that when you turn it just skids and carries on skidding for ever.
(c is left, b is right.)
anyone got any ideas on how to prevent the character skidding as if it is on ice when I turn?
Thanks again guys
@};- MH