-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- All of the mass properties have regular getters/setters - :get/setMass - :get/setInertia - :get/setCenterOfMass - You can use nil for any of the setters to set the mass property to an "automatic" value, computed from the shape and/or other overridden mass properties. - If you override the mass properties, we assume you know what you're doing and don't try to be sneaky and auto-update downstream values. So changing the mass or center of mass doesn't auto-scale the inertia. - If you change the shape (or enabled axes), mass data gets reset. - You can use :resetMass to reset all 3 mass properties at once. It's also useful if something about the underlying shape changed.
- Loading branch information
1 parent
c23a0c0
commit 836189e
Showing
6 changed files
with
271 additions
and
169 deletions.
There are no files selected for viewing
Submodule jolt-physics-sharp
updated
52 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.