]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix some issues with pulling system (#32145)
authoreoineoineoin <github@eoinrul.es>
Sat, 14 Sep 2024 16:29:05 +0000 (17:29 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Sep 2024 16:29:05 +0000 (02:29 +1000)
commitdea27810472460d4f697b450a54d8cd0e1d30796
tree1da2e57ee6d8994ed7bf726d6e18931d7b89b7bd
parent00e62b6c2201ce96b5769c88f27946b374fd646c
Fix some issues with pulling system (#32145)

Joints were created with pivots at object origin, causing unintuitive behaviour when an object was not centered on the origin. Now puts the pivots at the COM.
Joint limits were set based on fractions of the union of the AABB of objects, which did not make geometric sense. Now uses the pivot length with an additional [arbitrary] length.
Joints were created with a very low spring stiffness, which had a negligible effect most of the time but caused very unintuitive behaviour when the pulled object had a low mass (#28028) - disable the spring limit, and just use the hard min/max limits.

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
Content.Shared/Movement/Pulling/Systems/PullingSystem.cs