Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

User-defined rigidity for scripted physics constraints. #2335

Open LillyWho opened 7 months ago

LillyWho commented 7 months ago

Details

It would be helpful to be able to define numerically how rigid a physics constraint that's to be created is going to be. In use cases such as train build, it can happen that a constraint is too stiff, leading to constructions with Jacobs Bogies to derail on slopes, when the mass of the connected trailing segment isn't enough to bend the constraint to keep the last bogie on the track.

Footnote: I've tested with axles and advballsocket and the latter seems ever so slightly more flexible, even when confined to rotating around the z-axis.

LillyWho commented 2 weeks ago

What I forgot to mention, it's not even like the weights of my props are carelessly set. I specifically use realistic weight on the car bodies, which in one example amounts to 15.75 metric tonnes per section (A/B). Because the bogies are naturally lighter, they can't pull themselves back down onto the track if encountering a slope that slopes too steeply.