Train simulator: When train goes at high speeds it starts jumping
I'm trying to do a train simulator with physics so for this I have this setup:
4 wheels attached to a bogie with a hinge joint, all 4 have sphere colliders and rigidbodys, so to prevent falling from tracks I have a Raycaster that hits the tracks and applies a force to the bogie so that it doesn't fall off the tracks (keeps it centered).
2 Bogies attached to the main body with a hinge joint, all with their own rigidbody and colliders.
Main body with its own collider and rigidbody
Tracks with mesh collider
Now the system itself works, it can do closed curves without derailing at a very low speed, but as soon as I go a little bit faster, it starts jumping for no reason (on straight tracks and also curve ones) and derails, making it impossible to go fast or even at a normal speed.
Any help is appreciated.
Your answer
![](https://koobas.hobune.stream/wayback/20220613060655im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Physics.Overlapsphere giving me a null reference exception 1 Answer
Gun RayCast Origin lags with fast moving object. Help? 0 Answers
Any ideas how I could slightly improve the Standard Assets car side collisions. 1 Answer
Hovercar rigidbody acceleration 1 Answer
How to apply a force at certain point of an object? 0 Answers