Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by seriousmedia · Apr 09, 2010 at 08:29 AM · collisionmeshhollow

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
-2

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image runevision ♦♦ · Apr 09, 2010 at 11:15 AM 0
Share

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.

avatar image seriousmedia · Apr 09, 2010 at 01:32 PM 0
Share

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.

avatar image
0

Answer by markmlella180 · Jun 29, 2020 at 10:26 AM

@seriousmedia Were you able to solve this? I have a similar issue.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image matthewosb003 · Jun 29, 2020 at 11:16 AM 0
Share

@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

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

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

Cloth Renderer & Mesh collision sometimes fail 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges