Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
0
Question by lukasaurus · Sep 02, 2014 at 05:03 AM · meshboundsoverlapdungeon

Determine if two meshes overlap, without using bounds or trigger?

My dungeon generation is progressing. Starting with a central piece, I find all the exits (empty child game objects) and expand outwards. Due to the nature of it, it is possible for pieces to overlap, and I need to be able to determine this and select another dungeon prefab or a deadend if it cannot find an appropriate piece after n tries.

I've tried using bounds & Intersects to determine if an intersection occurs. Problem with this is that the intersection registers even if they are aligned and not overlapping. Since they will always be aligned with at least one other object, this is unsuitable.

I've tried adding a non-k rigidbody and box collider as trigger to all pieces, but same issue occurs, if they are side by side, the trigger still registers as a hit.

So what I need to do is to determine if the two mesh colliders are overlapping (they can touch at vertices, but two planes on the mesh cannot overlap), without using bounds or triggers.

Any suggestions?

Comment
Add comment · Show 2
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 robertbu · Sep 02, 2014 at 08:42 PM 0
Share

If tolerances are that tight, contract the colliders just a bit. Or you can contact the bounds of the two objects to compare just a bit before doing the comparison.

avatar image frogsbo · Sep 02, 2014 at 08:55 PM 0
Share

why can't two planes with mesh collider overlap? it's best to leave them as non kinematic until they have a hit. you mean two triangles/planes cannot share the same plane? obviously there is a way to check with vertices, perhaps you can run a script that checks any collisions and gets the hit triangles and aligns the mesh vertices of them... are they like walls? can we have a pic?

0 Replies

· Add your reply
  • Sort: 

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

Problem with checking for intersection between two rotated objects 3 Answers

Do the Bounds of an Mesh Change When you Change its Vertices Positions? 1 Answer

Instantiate within boundaries of Mesh shape 2 Answers

Imported mesh bounds size is alwasy too big and pivot point is not aligned 1 Answer

Shader - Hide self overlapping mesh 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