Skip to content

Fix SleepingPlugin not being optional and add WakeUpBody command#624

Merged
Jondolf merged 1 commit into
mainfrom
fix-sleeping
Jan 11, 2025
Merged

Fix SleepingPlugin not being optional and add WakeUpBody command#624
Jondolf merged 1 commit into
mainfrom
fix-sleeping

Conversation

@Jondolf

@Jondolf Jondolf commented Jan 11, 2025

Copy link
Copy Markdown
Member

Objective

Avian 0.2.0 has a regression from 0.1 where the TimeSleeping component is required, but it is only added automatically (as a required component) if the SleepingPlugin is enabled. This means that disabling the SleepingPlugin breaks physics.

Solution

Make TimeSleeping properly optional for rigid bodies.

I also added a WakeUpBody Command to clean up some logic and abstract away resetting TimeSleeping.

@Jondolf Jondolf added P-Regression Behaviour that was working before is now worse or broken.Add a test for this! A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on labels Jan 11, 2025
@Jondolf Jondolf merged commit 6a65e8f into main Jan 11, 2025
@Jondolf Jondolf deleted the fix-sleeping branch January 11, 2025 16:20
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 P-Regression Behaviour that was working before is now worse or broken.Add a test for this!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant