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 Kijun · Jul 30, 2010 at 09:51 AM · collisionrigidbodycollidermeshcollider

fast collision between a mesh collider and a continuous dynamic rigidbody

My main object is very fast, and it's been going through my mesh colliders as if they didn't exist. I've been trying out Unity 3.0's collision detection options hoping that it will solve the problem.

But it seems like these options only apply for rigidbodies, and reading from:

Continuous - Used for objects which the Continuous Dynamic detection needs to collide with. Continuous Dynamic - Used for fast moving objects.

it seems as if I don't set one object on continuous and the other on continuous dynamic, it won't affect my collisions.

I have two questions:

  1. Should I still set my main rigidbody in continuous mode even though it will collide with a mesh collider?
  2. And is there anyway to give make my mesh the continuous property?

Comment
Add comment · Show 1
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 cregox · Mar 29, 2011 at 08:11 PM 0
Share

related: http://answers.unity3d.com/questions/49252/cheapest-way-to-catch-collisions-on-very-fast-moving-objects/49259#49259

1 Reply

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

Answer by jonas-echterhoff · Jul 30, 2010 at 10:53 AM

If your fast moving object has a rigidbody (it should), and you set that to "continuous dynamic", you should be fine for any collisions against:

-static mesh colliders.

-other rigidbodies with continuous collision detection enabled.

In other words, you don't need rigidbodies on the static meshes for CCD to work. You will need to add rigidbodies to primitive colliders, though.

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 SebasSBM · Aug 03, 2016 at 12:49 AM 1
Share

@jonas echterhoff: That sounds good, but Unity Docs say a completely different thing -that is what did lead me to find this question. I quote:

Continuous Collision Detection is only supported for Rigidbodies with Sphere-, Capusle- or BoxColliders.

Anyway, I will try it out as you say, just in case the Docs are wrong/outdated (it might be).

avatar image SebasSBM SebasSBM · Aug 03, 2016 at 01:13 AM 1
Share

@jonas echterhoff: After doing several stress tests against a mesh collider, I conclude that what you say is correct, regardless of what is written in the docs.

avatar image SebasSBM SebasSBM · Aug 11, 2016 at 07:24 PM 1
Share

@jonas echterhoff: I recently started trying with a fast moving object that, this time, also rotates at very high speed. Somehow, with high angular speed the "stopping force" of the moving object increases, thus the moving object runs through the mesh collider too easily compared with low rotation tests.

Perhaps Unity Developers didn't have this situation in $$anonymous$$d, or perhaps it was very difficult to correct with angles changing too rapidly.

PD: However, the same test against a primitive "Cuboid" form with a similar thickness than the custom mesh form, couldn't be "pierced" with same linear and angular speed (and I tried agressively)

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

1 Person is following this question.

avatar image

Related Questions

Is there ANY possible way to use a mesh collider(without convex) with a rigidbody? 1 Answer

Stop rigidbody from moving after it falls on another rigidbody 1 Answer

Anyway to make my object not fall through the floor without convex? 0 Answers

My character falls over when colliding 1 Answer

Problem with collision - Collision.other.gameObject is obsolete 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