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

Support for unsafeConvex shape #97

Merged
merged 7 commits into from Sep 3, 2020
Merged

Support for unsafeConvex shape #97

merged 7 commits into from Sep 3, 2020

Conversation

w0rm
Copy link
Owner

@w0rm w0rm commented Aug 29, 2020

This PR implements #91 by adding the new function to the Physics.Shape module:

unsafeConvex : TriangularMesh (Point3d Meters BodyCoordinates) -> Shape

convex

TODO:

  • join coplanar adjacent faces (should fix the existing tests)
  • improve the tests and add more tests for things like inertia
  • document unsafeConvex

- inertia can only be offset from the center of mass
- rotating inertia is different from rotating inverted inertia
@w0rm w0rm merged commit 89ec60a into master Sep 3, 2020
@w0rm w0rm deleted the unsafe-convex branch September 3, 2020 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant