Hello hello 🙂
I'm developing a racing game based on this sample: http://miian.com/en/blog/mianwo/2009/08 ... g-game-bas and my designer colleague would love to see drifting/skidding happening in the game. By that I mean that when driving forward - say North - fast and you turn West all of a sudden, the car's body should turn but still slide in direction of North 😉
I already wrote the part where i detect if drifting should happen (compare the angle of the wheels + car's body to a driftTreshold). I've tried saving the body's LinerarVelocity and decreasing it 10 times a second and adding it in the car's velocity, but that's absolutely not it, it looks bad 🙂
Does anyone have any tips or ideas how to proceed in this case? It would help me a lot 🙂
Thanks,
Z.
I'm developing a racing game based on this sample: http://miian.com/en/blog/mianwo/2009/08 ... g-game-bas and my designer colleague would love to see drifting/skidding happening in the game. By that I mean that when driving forward - say North - fast and you turn West all of a sudden, the car's body should turn but still slide in direction of North 😉
I already wrote the part where i detect if drifting should happen (compare the angle of the wheels + car's body to a driftTreshold). I've tried saving the body's LinerarVelocity and decreasing it 10 times a second and adding it in the car's velocity, but that's absolutely not it, it looks bad 🙂
Does anyone have any tips or ideas how to proceed in this case? It would help me a lot 🙂
Thanks,
Z.