Achieve accurate real-time collision detection without compromising interactivity or frame rates with Convexify, the runtime solution for creating convex colliders on any platform!
Convexify | Web Demo | Documentation
Features
- Runtime Collider Generation: Whether it’s procedural geometry or user-loaded models, Convexify empowers you to create convex compound colliders for arbitrary, non-convex meshes on the fly, ensuring precise collision detection for complex objects.
- Cross-Platform Compatibility: Implemented in C#, this asset seamlessly integrates with Unity on any supported platform, ensuring flexibility in your game development.
- Background Thread Computation: Computations can be run in the background, allowing for uninterrupted gameplay while dynamically generating complex compound colliders.
Technical Details
This package contains a C# port of the renowned VHACD algorithm, which is widely used in game/physics engines to speed up physics calculations because it can automatically create a set of strictly convex shapes approximating any complex geometry.
In Unity, convex decomposition is required, if you want to have accurate dynamic Rigidbody collisions for a mesh with complex geometry. For more information, refer to the screenshots and the documentation.
This library is specifically made for those who wish to do convex decomposition at runtime on any platform. It’s implemented in pure C# and runs on all platforms that Unity supports.
(Fully tested on Windows, WebGL & Android. Looking for beta testers for macOS, iOS & Linux.)
Limitations
- Asynchronous calculation is currently not supported on WebGL.
Scope Limitations
- The asset currently does not contain any editor tooling (e.g. for modifying the colliders or serializing them as assets for later use). For authoring colliders at design-time in the Unity Editor, there are other tools available in the Asset Store that already do a good job at this.
Feedback and constructive comments welcome!
