Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 hd27 · Jun 15, 2012 at 11:02 PM · colliderstrianglescompound

Compound colliders on triangle shapes

I have shapes in my game that needs compound colliders. Its not a problem creating colliders for the most basic shapes but if the shape is a form of a triangle I cant really create a coliider that will match the shape becuase there is no triangle primitive collider. The only thing thats close is the box collider but I need my triangel angle to be 90 degrees for it to fit and usually thats not the case in my tiangles.

Please help if you can, Ive allready spent countless hours trying to fix this problem with no success.

Comment
Add comment · Show 5
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 whydoidoit · Jun 15, 2012 at 11:04 PM 3
Share

Wouldn't a mesh collider be a better option?

avatar image hd27 · Jun 16, 2012 at 08:20 AM 0
Share

If I use a mesh collider then they cant collide with each other/

avatar image syclamoth · Jun 16, 2012 at 08:24 AM 0
Share

Use a mesh collider, tick the 'convex' toggle. This will allow them to collide with each other, and for simple platonic solids like the ones you are describing it will not reduce the accuracy of the collider at all.

avatar image hd27 · Jun 16, 2012 at 08:36 AM 0
Share

But if I use convex it closes all open spaces so the shapes cant realisticly collide with each other.

avatar image shopguy · Apr 04, 2013 at 01:19 AM 0
Share
  • (adding as a comment since I can't plus yet due to low rep)

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by whydoidoit · Jun 16, 2012 at 09:53 AM

So I'm not quite sure what you are doing, but if you were previously able to use primitives you just need to make yourself a kind of convex triangle primitive.

  • Make a triangular prism mesh

  • Create a mesh collider

  • select your triangular mesh

  • set it to convex

  • scale and position it correctly

  • repeat :)

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
0

Answer by hd27 · Jun 17, 2012 at 01:26 PM

Thank you! Thats exactly what I needed to solve my problem, works great!

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 whydoidoit · Jun 17, 2012 at 09:31 PM 0
Share

Hi - please using the "Add New Comment" button hidden on the right of the screen when you are making a comment not writing a "Solution" :)

Could you mark my answer as correct to get it off the list of unsolved questions?

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

physics.OverlapSphere colliders 1 Answer

How are compound colliders used? 0 Answers

Compound Colliders and IgnoreCollisions 1 Answer

OnCollisionEnter2D in a puzzle game with each block snapped to a grid? 1 Answer

[2D] Find nonobscured corners of 2D sprites or collision boxes? 0 Answers


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