SarahWeiii / CoACD

[SIGGRAPH2022] Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search
https://colin97.github.io/CoACD/
MIT License
483 stars 64 forks source link

Add CalculateCollidersForHierarchy Method and Improve NullReferenceException Handling #54

Closed nobShinjo closed 2 months ago

nobShinjo commented 3 months ago
  1. Addition of CalculateCollidersForHierarchy Method:

    • Introduced a method to calculate and decompose meshes within a hierarchy and generate colliders.
  2. Prevention of NullReferenceException:

    • Added error handling to prevent a NullReferenceException when neither a MeshFilter nor a SkinnedMeshRenderer is attached to the object.
    • If these components are missing, a dialog now notifies the user, and the process is safely aborted.

Please review and provide your feedback!