x


horseshoe game - convex mesh colliders with interior spaces

I'm working on a horseshoe game. I understand that the mesh colliders on my horseshoes have to be "convex" because I need them to collide with 1) terrain (used for the sand pit) and 2) other horseshoes with mesh colliders. First, is that the correct assumption?

So I made the horseshoe collider be convex and now the problem is that the stake is not allowed to protrude into or otherwise take up the "open" part of the horseshoe. So it's impossible to get a ringer so to speak. Looking at the wireframe outline of the collider, this makes sense, as it appears to wrap the entire horseshoe and not account for the open space in the middle of the horseshoe.

alt text

Is there something wrong with the verts in my horseshoe model or is this simply the nature of how convex mesh colliders work? If this is how convex mesh colliders work, how would I work around this for my game?

more ▼

asked Jun 17 '10 at 08:12 PM

lamprizzle gravatar image

lamprizzle
82 3 3 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

That is correct. A workaround would be to create several empty gameobjects with primitive box colliders, then scale and rotate them so that they cover the horseshoe. Then make them children of the horseshoe, and you should be set to go.

Good luck!

more ▼

answered Jun 17 '10 at 08:23 PM

e.bonneville gravatar image

e.bonneville
5.7k 100 116 165

Thanks, I guess that makes sense based on the definition of the word "convex."

Jun 17 '10 at 08:36 PM lamprizzle

If this is the answer that works for you, accept and upvote it using the arrow and checkmark please. Thank you, and good luck.

Jun 17 '10 at 08:45 PM e.bonneville
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1363
x574
x282
x30
x24

asked: Jun 17 '10 at 08:12 PM

Seen: 1712 times

Last Updated: Jun 17 '10 at 08:12 PM