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 Albert 1 · Aug 20, 2010 at 01:56 AM · collisioncircle

Circle (Squished Sphere) Collider

Hello,

I have circular object that I want assign a sphere collider to in order to get more accurate collision with my object; the problem is that I need a sphere that's sized correctly in X, Y, but fairly flat in Z (i.e. a circle or disc). Is there any way to configure a unity sphere collider to do this? Should I use a different collider?

Thanks,

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

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by tayl0r · Jul 12, 2012 at 10:46 AM

I'm not sure why they just don't let the capsule collider have a slider for "rounded end cap" so you can change how far the rounded end cap sticks out... 0 would be a flat disc and ~1 would be how the capsule collider looks now.

As it is now, you are forced to either combine a bunch of sphere / cube colliders which gives wonky results or use a mesh collider which will perform worse and not collide with other mesh colliders unless you have "convex" checked, which decreases performance even more.

By wonky results I mean if you try to stack a bunch of cube colliders on top of each other (each one roughly the size of the disc and rotated by ~20 degrees), the friction and collision does not behave the same as if you just have a single collider. Somehow the stack of colliders is breaking it.

I did not try creating a disc out of cube or sphere colliders that do not overlap. That might be worth a try. I am happy using a mesh collider (for now).

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
-1

Answer by Zu01 · Aug 20, 2010 at 02:05 AM

Try wheel collider, Ive never personally used it but it might be what your looking for. Or try making it the shape you want in your 3d moddeling softwear then find it in unity and select add colliders or some thing. Its in inspector when you have it selected out of your hiercy. Push apply then BOOM! you have a collider fit for exactly the shape you have!?!?!

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 Jessy · Oct 02, 2010 at 06:51 PM 1
Share

The wheel collider does not act like other colliders; if you drop something onto its circle, or try to push it through, there is no resistance.

avatar image
0

Answer by Jessy · Oct 02, 2010 at 07:02 PM

Yes. A sphere collider is just a visualization for checking collisions in a certain radius; unfortunately, you can't constrain it to certain axes. There is no primitive collider for this shape; decide how accurate you need the collisions: it may be that you can use several capsule colliders rotated around a single vector, but most likely, a mesh collider is what you need.

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 saketh_1 · May 28, 2016 at 03:51 PM

cylinder is best i think

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 FenixShadow · Apr 30, 2017 at 01:29 AM 0
Share

There is a cylinder object, but it just has a capsule collider on it.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Move ball to mouse while still getting stuck on collision 1 Answer

Player not going in right direction when parented 0 Answers

OnTriggerEnter2D triggers before the collision 1 Answer

2D collider problems. The colliders seem "unstable". 3 Answers

How to detect if a ball will collide with another, and the normal vector of the collision? 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