What is the appropriate Collider to use on my imported 3d model?
I have built a 3d square track model in maya which is similar to this
the track is hollow in the middle area , and as usual I added a mesh collider with convex option checked but now it's treating my track as if it's a square including the non existent middle area , what can I do to fix this? do i need to import each track line separately not as a group?
Answer by SpaceManDan · Sep 27, 2015 at 07:41 AM
Convex means no hole. Convex will create a surface that has no 'divots' or 'caved in' areas. That is not the shape you need here. You may consider going back into maya and creating a super low poly version of the model you already have. Do it small sections though. Each being designed as the mesh collider for the track object you have. Then import and align them. I know this seems like a lot of work, but it is how it's done the right way.
The lower the verts the better. I think unity can handle a model with 256 or less verts as a mesh collider. (which isnt bad if it's static (doesnt move)). Don't quote me on that though. Not sure the exact number.
I am certain this is what you'll want to do if you want to make collisions match the track you have as a model.
Your answer
Follow this Question
Related Questions
Best way to get 2D character to collide with a meshcollider? 1 Answer
Auto-generate optimal direction for Raycast with specifications 1 Answer
Mesh Collider isn't working on whole mesh 0 Answers
CollisionEnter and Collision Exit won't work 2 Answers
Object position doesnt change in Build but does in Scene/Editor Game 0 Answers