- Home /
Colliding with a hollow mesh
I've modelled a tunnel (cave) in blender with lots of bends in it and want a spaceship to fly through it (and of course bounce off the walls of the tunnel)
The only problem is that i can't seem to get the collisions working with the tunnel. Is this because the tunnel is hollow?
Is there a way to get this working?
greetings,
Ramon
Answer by duck · Apr 09, 2010 at 10:11 AM
You should be able to do this with a mesh collider, and by making sure that "convex" is not checked.
You'll also need to make sure that your ship uses primitive colliders, or that its mesh collider component is marked as convex.
For more detail, read about mesh colliders here.
Answer by qJake · Apr 09, 2010 at 10:06 AM
You cannot have a concave mesh with a mesh collider on it, as far as I understand it. You need to manually place various colliders inside your cave or find some other way of doing the collisions. You can attach child gameobjects with simple box colliders and then scale them to be roughly the same area as the inside of the cave, for example.
This is not true. You can have concave mesh colliders without problems as long as they are static and don't have the convex flag checked.
Got it working, it appears that i have to convert my model (in blender) to a mesh before saving. I've created it with a BevelObj on a bezier-curve. When i save it like that it does'nt work.
Answer by markmlella180 · Jun 29, 2020 at 10:26 AM
@seriousmedia Were you able to solve this? I have a similar issue.
@markmlella180 I mean, if you read through the answers & comments You can see seriousmedia stating he got it working and saying what he done, I'll qoute it for you ;) "Got it working, it appears that i have to convert my model (in blender) to a mesh before saving. I've created it with a BevelObj on a bezier-curve. When i save it like that it does'nt work." - Seriousmedia, 2010
Your answer
Follow this Question
Related Questions
create a collider onto an fbx 1 Answer
Making textures stop bending 0 Answers
Imported Objects not solid (Mesh Collider) 2 Answers
Hollow Rigidbody (Noob question?) 1 Answer