I am trying to get a working train wheel system with a FloorPanel that does not rotate when it is connected to the wheel’s axle.
The problem is, I know very basic about Roblox physics & constraints, so I used a WeldConstraint and for some reason the FloorPanel rotates.
I have tried various scripts on making the wheels move & have the welded FloorPanel not rotate. I even tried unanchoring the wheels & making them force pushable entirely. I am using LookVector to power my wheels.
The built in physics are pretty intuitive and in most simple scenes they behave roughly alike how they would in the real world, welding the floor to the axle directly is basically the same as what would happen irl (axle cant rotate) Except your manually rotating them with a script or using a strong force so the floor actually rotates too.
You can fix it by using some hinges (have a part inbetween the floor and axle connected to said axle via a hinge, then connect that to the floor with another hinge (so it can rotate lightly on corners)
Yes, The axle hinge attaches the axle and body and the floor hinge makes it so the floor/body rotates when going through corners without derailing (rigid trains will always derail on corners)