Skip to content

Fix locked axes for angular impulses#881

Merged
Jondolf merged 1 commit into
mainfrom
fix-angular-impulse-locked-axes
Nov 1, 2025
Merged

Fix locked axes for angular impulses#881
Jondolf merged 1 commit into
mainfrom
fix-angular-impulse-locked-axes

Conversation

@Jondolf

@Jondolf Jondolf commented Oct 31, 2025

Copy link
Copy Markdown
Member

Objective

Fixes #865.

Locked axes are being applied wrong for angular impulses.

Solution

Fix it. The inverse angular inertia accessor method already applies locked axes correctly, no need to apply them a second time to the inverse.

Testing

Tested using https://github.com/idanarye/demonstrate-avian-4.0-locked-axis-bug

@Jondolf Jondolf added this to the 0.4.1 milestone Oct 31, 2025
@Jondolf Jondolf added C-Bug Something isn't working A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Oct 31, 2025
@Jondolf Jondolf force-pushed the fix-angular-impulse-locked-axes branch from 218fdf7 to b2b4e74 Compare October 31, 2025 23:06
@Jondolf Jondolf merged commit 4a7015f into main Nov 1, 2025
12 checks passed
@Jondolf Jondolf deleted the fix-angular-impulse-locked-axes branch November 1, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Bug Something isn't working D-Straightforward Simple bug fixes and API improvements, docs, test and examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LockedAxes has weird behavior when applying rotation by impulse

1 participant