Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rigid body angular/ rolling friction #2573

Merged
merged 10 commits into from
Sep 6, 2022

Conversation

QuantumCoderQC
Copy link
Contributor

@QuantumCoderQC QuantumCoderQC commented Sep 5, 2022

This PR fixes an issue with rolling friction in Rigid Bodies. Requires armory3d/iron#170

To fix the issue #831, angular damping was used instead of angular friction. But this caused additional issues with rolling objects such as spheres and cylinders. The actual issue was that linear friction setting was also used for angular friction, since there was no option in Blender rigid body settings. This PR adds a field for angular friction setting in the Rigid Body settings and uses it instead.

Additionally, the Rigid Body trait parameters is also changed form Array<Float> and Array<Bool> to typedef as this offers more information about the values.

@MoritzBrueckner MoritzBrueckner added the Release Notes: Fixes A pull request that fixes something. Used to generate release notes. label Sep 5, 2022
@luboslenco luboslenco merged commit 0fcac77 into armory3d:main Sep 6, 2022
@QuantumCoderQC QuantumCoderQC deleted the fix-physics-friction branch September 8, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Notes: Fixes A pull request that fixes something. Used to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants