Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is it possible to create an irregular-shaped collider? If so, how? Would I need to create a couple objects and group them up into one Game Object?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Mesh colliders and parented objects are the only real way to do things, Unity or otherwise. Note that mesh colliders can be a lot more expensive, but are the only choice if you need fairly detailed collision handling for "irregular" objects.

share|improve this answer
    
Is it possible to import a shape as a collider? –  Blue Jul 10 '12 at 19:49
    
You can import any arbitrary mesh and use a mesh collider. –  Sean Middleditch Jul 10 '12 at 19:50
add comment

If you don't want to use a mesh collider (maybe for performance reasons), you can build a compound collider as described halfway down this page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.