Skip to content

Fix ApplyLinearImpulse treating the impulse as being both in world and local space#6444

Open
SlamBamActionman wants to merge 1 commit intospace-wizards:masterfrom
SlamBamActionman:fix-add-impulse-angular-velocity
Open

Fix ApplyLinearImpulse treating the impulse as being both in world and local space#6444
SlamBamActionman wants to merge 1 commit intospace-wizards:masterfrom
SlamBamActionman:fix-add-impulse-angular-velocity

Conversation

@SlamBamActionman
Copy link
Member

Short and simple fix for a function used in literally one place (soon two) in Content.

In short, SetLinearVelocity uses impulse as it's in world space, while SetAngularVelocity treats it as if it is in local space. Cue incorrect angular velocity being applied. This PR changes the local positions into being in world space.

@slarticodefast
Copy link
Member

Here a PR that showed the bug in action (see Ed's video below) and can be used for testing.
space-wizards/space-station-14#32415

@Tayrtahn Tayrtahn added T: Bugfix Type: Bugs and/or bugfixes A: Physics Relating to movement and collisions. labels Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Physics Relating to movement and collisions. T: Bugfix Type: Bugs and/or bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants