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
-1
Question by highpockets · Feb 23, 2014 at 08:21 PM · collisioncolliderboxcolliderbox collider

Is it possible to scale one face of a box collider??

I'm assuming that box colliders have vertices to represent their position and size. I was wondering if you could somehow get the faces and their corresponding verts and scale them?? I'm trying to make the collider better represent the bow of a ship. If I can't resize the faces of the box collider, then I may as well use a mesh collider, but since it is expensive, I would prefer not to.

Thanks in advance

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

2 Replies

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

Answer by Owen-Reynolds · Feb 23, 2014 at 08:36 PM

" box colliders have vertices to represent their position and size." No. The built-in colliders aren't just pre-made mesh colliders.

Perfect 90 degree boxes (and spheres and capsules) have fast mathematical ways of collision testing. For a box, you orient to local coords from the center, then do a (fast) check x,y,z are all less than the size. If the box has a slantwise face, that method won't work.

That's why Unity has no build-in cylinder collider. There just isn't a fast math trick to check it.

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 highpockets · Feb 23, 2014 at 10:53 PM 0
Share

fair enough. I figured it wasn't possible or unity would have had a means of finding it through the documentation

avatar image
-1

Answer by joshieerawr · Feb 23, 2014 at 10:12 PM

create the shape in 3D package and add a mesh collider, i don`t know if you can in Pro-builder v.2

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 highpockets · Feb 23, 2014 at 10:54 PM 0
Share

Like I said, That's what I'm going to have to resort to since there isn't a way to do it with the primitive

avatar image Owen-Reynolds · Feb 24, 2014 at 03:10 AM 0
Share

If you've never, ever made a 3D model, it's going to be a huge pain. But otherwise, in free Blender, can easily click new Cube, select and pull one edge up a bit, then export as FBX (and save the blender file, just in case.) A few $$anonymous$$utes.

Or, using primitives, could probably stack a tilted thin box over a box to get about the same shape (the thick side won't be flat, but pretty close.)

avatar image highpockets · Mar 04, 2014 at 05:12 PM 0
Share

joshieerawr , did you down vote my question?

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

21 People are following this question.

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

Related Questions

Big issue with colliders 1 Answer

Stop sword from distorting character animation 3 Answers

Character Collider doesn't collide with other Colliders 2 Answers

2D Colliders aren't actually touching but they're behaving like they do? 0 Answers

Box collider didn't jump with player 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