Skip to content

Unity plugin of interpolate non-convex collider to convex.

License

Notifications You must be signed in to change notification settings

FrankLinxzx/UniColliderInterpolator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniColliderInterpolator

Image

Overview

UniColliderInterpolater is the plugin of Unity that interpolate 3d model to cube collider. The Unity physics does not allowed non convex(concave) mesh collider. We can escape the problem by checking convex option at mesh collider but the collision detection is not acculate. The plugin aims accurate collision detection by interpolate mesh collider using box collider.

Demo

Left : Mesh collider with default convex option. Right : Interpolated mesh collider using UniColliderInterpolator. Demo1 Demo2

Requirement

Unity 2018 or higher

Usage

Attach ColliderInterpolator.cs to your 3d model whitch has mesh filter.

Attach

Set collider division length and push Generate button.

Attach

That's it!!

Demo3

Notice

  • The plugin detect other object collider when generation. Separete target 3d model from other colliders when generation.
  • The generation doesnt work well when target 3d model has rigidbody. Remove rigidbody components from target model when generation.

Install

use unitypackage at release page

Licence

MIT

Author

sanukin39

Bench

The great bench model from Unity Asset Store.

About

Unity plugin of interpolate non-convex collider to convex.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%