C. Krepel
C. Krepel

Reputation: 33

Box collider with a specific shape

So I've managed to create custom shapes in Unity by using Inventor. Problem is, that my Box-collider has a different shape than the shape of my actual object (which has curves and such). Is there a way to set the shape of my box-collider equal to the shape of my object? Thanks in advance.

Box Collider Screenshot

Upvotes: 1

Views: 4142

Answers (2)

kitta
kitta

Reputation: 2069

2 Options

  1. Mesh colliders (easiest)
  2. Multiple colliders form up to be nearest as your mesh (a lot better performance). In this case maybe box colliders.

Sample hierarchy should look like:

- Your Game Object // Rigidbody here if use.
 |- Mesh
 |- Colliders
 |- Colliders
 |- Colliders

Upvotes: 0

Fredrik
Fredrik

Reputation: 5108

There are many different colliders to choose from. Perhaps a MeshCollider is what you're looking for. Or, if you're doing a 2D game, a Polygon Collider 2D

Upvotes: 8

Related Questions