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 Wizardman290 · Nov 16, 2014 at 04:25 AM · modelmodeling

How to make a box collider fit into a custom model?

I just recently made a model in Blender (Still have a problem there, have to export at a scale of 40). The model is terrible looking coffee cup, and when I insert a box collider, it is a big box. Is there a way to make it so the Box Collider fits exactly with the model? If so, please tell me how in detail, new to Unity + GameDev + Coding... Thanks in advance!

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 SirGive · Nov 16, 2014 at 04:59 AM 0
Share

Unless you have a reason to want all geometry to collide, do not use a mesh collider

avatar image Wizardman290 · Nov 16, 2014 at 05:19 AM 0
Share

The mesh collider worked perfectly, thank you. Not sure what you're saying SirGive, I am new to Unity/GameDev/Coding lol. I used the mesh collider and it worked the way I needed. A box collider just throws a box around it, and I have a CoffeeCup object, that i made in Blender, and I want to only collide with the cup, not the area around it, I don't know how to do anything in Unity really, I just accidently made a game so if you bump into something you start flying away, made a maze out of it xD

avatar image Wizardman290 · Nov 16, 2014 at 05:22 AM 0
Share

Actually, after a bit more testing, it isn't PERFECT, the collider from the mug to the handle, isn't on the object, it just makes a line from one point to the other (Confusing) Is there a program or a way to edit a Collider to fit EXACT on the object?

avatar image SirGive · Nov 16, 2014 at 05:26 AM 0
Share

Do you want accurate collision with the cup? IE: its the actual environment? Or is it really just an object that can be walked into, knocked over, or picked up? Generally you treat objects like these as boxes because its not very taxing to calculate collisions for it. If you have this detail collision for just a $$anonymous$$cup that is really not important in the grand scheme of things - it wastes tons of calculations making sure collision with it is exact

avatar image Wizardman290 · Nov 16, 2014 at 05:31 AM 0
Share

This is not my actual game that I'm going to sell, it is me trying to understand unity better. Right now I want to make it so it is a big cup that the player can hit, but I want the Collider to fit perfectly around the edges up the cup. I don't want the player to stop moving (In my case, start flying around) by touching a non-existant box around the cup. I want him to stop moving (In my case, start flying around) when touching the actual cup. If my statements are confusing, I do appologize, I am new to game development and Limitations, and also not very good at explaining things.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by frarees · Nov 16, 2014 at 04:30 AM

You can adjust collider size manually from BoxCollider's inspector. If you want to automate this, you can use Renderer.bounds to adjust your Collider.bounds.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Rotation Issue 1 Answer

Can unity handle this city (it's multiple meshes)? 1 Answer

Modeling Tutorial 1 Answer

Importing Blender model with multiple empty material indices 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