Valrus
11-09-2006 21:38:26
I'm working on a small racing game here and I'm having some problems with the physics.
Basically what's happening is that when the car gets up to a decent speed it will spin out when you try to turn the car.
I ahve tried playing around with functyions for setting the lateral slip (setSideSlipCoefficient and setMaxSideSlipSpeed) insiode the vehicle userCallback function, but that doesn't seem to effect it.
I've been trying to set the Kinetic and static friction in my material callbacks, I did it with the car body, but that doesn't do much of anything and I can't figure out how to get the tires to have a material callback of their own.
I've looked at stuntplayground but I don't see how Walaber does it, found the section but I don't really understand his code.
Basically what's happening is that when the car gets up to a decent speed it will spin out when you try to turn the car.
I ahve tried playing around with functyions for setting the lateral slip (setSideSlipCoefficient and setMaxSideSlipSpeed) insiode the vehicle userCallback function, but that doesn't seem to effect it.
I've been trying to set the Kinetic and static friction in my material callbacks, I did it with the car body, but that doesn't do much of anything and I can't figure out how to get the tires to have a material callback of their own.
I've looked at stuntplayground but I don't see how Walaber does it, found the section but I don't really understand his code.