Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Kristian · Sep 01, 2011 at 05:42 PM · errorphysicscapsulecapsulecast

CapsuleCast consistent error in size

Recently we ran into a problem using capsule cast that we tracked down to what we think might be an error in unity. Consistently our capsule casts would only return true when the collider was well within bounds. The error was pinpointed to be 0.1 in size, no matter the size of the check.

In the image below a capsule is cast from the red circle on the right to the red circle in the middle, the radius of the cast is represented by the yellow circle, which is exactly 0.1 greater in radius than the red ones. The green circle was then moved towards the cast until it finally collided, 0.1 distance within the bounds that it should have collided with.

alt text

We've been able to easily replicate it, so I hope there is something obvious that we are doing wrong.

P.S. the checks were done with a huge height, and on the same y coordinate, to make sure that it wouldn't be an issue.

[edit] P.P.S. if anyone would be interested, a project displaying the discrepancy can be provided.

[edit2] Important note, the green capsule is a character collider. It appears to work fine enough for normal colliders. I reduced skin width to 0.0001, but it had no effect.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Matt-Downey · Jun 16, 2012 at 11:49 PM

Go to the tab "edit"-->"project settings"-->"physics" and look at the "min penetration for penalty" variable. If that variable is 0.05, then that is precisely the behavior the Unity3d dev team intended. The 0.05 is multiplied by 2 to yield 0.1 because there are two objects colliding and each can travel 0.05m without any penalty.

Comment
Add comment · Show 2 · 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 Wolfram · Jun 16, 2012 at 11:54 PM 1
Share

Nice one! ...although a tad late ;-)

avatar image Matt-Downey · Jun 17, 2012 at 12:22 AM 0
Share

With any luck I figured it'd help someone down the line.

The "CapsuleCast" tag doesn't have all too many questions associated with it, and I can't find the answer I'm looking for myself, although it might just be a driver issue. (SphereCast works perfectly and capsuleCast doesn't register.)

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

Why does CapsuleCast appear in the wrong place? 0 Answers

Invalid AABB Error on collision :( 1 Answer

The CapsuleCast is broken. 0 Answers

Instantiated Projectile IgnoreCollision Error 0 Answers

How to find the center of mass from capsulecast 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