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 cbruiners · Jul 14, 2012 at 01:51 PM · mesh collider

Mesh collider problem

I'm new to Unity, and have limited experience with 3D software (3D studio max).

I purchased a air hockey 3DS model to be used in my first game, I've written all the JS to handle moving the controller which will interact with the puc.

The problem I have is that it only works if I use a box collider to the controller and table frame (which is the wrong shape for the collision) as whenever I apply the Mesh collider to either the table or controller doesn't work (it doesn't show the green collider outline). My understanding is that every object has to have a mesh? If so, where's mine?

Below are the two objects I'm trying to apply the mesh collider to;

alt text

Table frame;

alt text

I've tried setting all mesh colliders to convex, but it makes no difference.

Cheers

Carl

hockeypuck.png (519.7 kB)
tablemesh.png (427.0 kB)
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 whydoidoit · Jul 14, 2012 at 01:56 PM 0
Share

In your second picture the mesh collider is disabled. It may also be a problem to do with scaling. In any case you are much better off attaching multiple primitive colliders than trying to use a mesh collider.

avatar image cbruiners · Jul 14, 2012 at 02:03 PM 0
Share

Do I have to create the colliders in $$anonymous$$ax with the object and export them? as I've created box colliders but the colliders in Unity other than scale and position cannot be rotated (otherwise I'd use the wheel collider :-) which would be ideal.

It would be great if I could manipulate a collider object in Unity more than just scale and position.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Mold · Jul 14, 2012 at 02:14 PM

You cannot have a Mesh Collider and a Box Collider on the same object (atleast I think so)

Comment
Add comment · Show 3 · 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 cbruiners · Jul 14, 2012 at 02:56 PM 0
Share

Unity lets me apply both mesh and box colliders to the same object.

I've tried it without the box collider, but my puc / controller just falls straight through the table top (which is a mesh collider @ present, though I'm thinking about changing this because the table top is just a plane).

avatar image Blink · Jul 14, 2012 at 03:32 PM 0
Share

You could try replacing the box collider with a spherical one, just a thought though.

avatar image cbruiners · Jul 14, 2012 at 03:43 PM 0
Share

I did try that, but it causes odd behavior when colliding with the puc... I'd need to be able to modify the collider

avatar image
0

Answer by cbruiners · Jul 14, 2012 at 05:46 PM

Can I using the transform method on the collider to modify its shape? And without effecting the actual model the collider is attached too?

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

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

7 People are following this question.

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

Related Questions

Mesh collider and Terrain collider 0 Answers

Generating a convex hull 3 Answers

Mesh Collider to a character and the maze? 3 Answers

How do i find the top of a mesh? 3 Answers

Procedural Generated mesh collider creates invisible walls after the first iteration 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