Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

BodyVelocity controlled vehicle flip fix?

Asked by 6 years ago

Well I actually have the vehicle with forces, the system listens to keyboard input and according to that, applies forces to the vehicle. Problem is that when vehicle hits obstacle, scripts can not detect that and still keeps applying forces, which results the vehicle being flipped , I tried tracking velocity of vehicle, so lets say if its 10 increments lower than it was .5 seconds ago, script takes it as hit obstacle and cancels the forces applied. It actually effectively works for obstacles that have height of vehicle or higher, but obstacles that have their highest points positioned lower than the mass center of the vehicle, still cause the vehicle to flip, so any help?

Answer this question