• 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
3
Question by Xtro · Apr 17, 2013 at 01:03 AM · rigidbodycolliderstaticdynamics

Is the child collider still static even if I parent them with a rigidbody ?

Hi,

I know that every moving collider object should have also a rigidbody. Is this rule valid for colliders parented by a rigidbody ? Or do they become somehow dynamic colliders ?

What if I need additional colliders as child objects under the rigidbody? Say, they are not kinematic, they don't even have a rigidbody. Only the parent is rigidbody.

Does the parent rigidbody make the children colliders dynamic or are they still static ?(which is weird, the static colliders parented by a moving rigidbody, loosing too much performance)

Comment
Add comment · Show 2
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 Xtro · Apr 17, 2013 at 05:06 AM 0
Share

The engine have to recalculate the structure when moving static colliders. I wonder if it's still doing this for compound colliders or not.

avatar image iwaldrop Xtro · Apr 17, 2013 at 02:59 PM 0
Share

Comment converted to answer so it can be accepted as such.

2 Replies

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

Answer by iwaldrop · Apr 17, 2013 at 05:09 AM

No, it's not. The the rigidbody aggregates all of the colliders under it at runtime. Plus, colliders with rigidbodies aren't considered static colliders, and the table doesn't include them for the reason of having to recalculate the entire collision matrix every time one is moved, as you noted.

It is safe to have several colliders childed to a single rigidbody, and to only move objects with colliders that also have rigidbodies attached.

Excellent question!

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 paraself · Sep 05, 2013 at 06:00 AM 0
Share

What if some of its child static colliders get moved. Is it consider as 'moving static collider'?

avatar image iwaldrop · Sep 05, 2013 at 06:31 AM 0
Share

You didn't define 'it'. But FWIW there's no such thing as a 'static' collider that is childed somewhere beneath a rigidbody.

avatar image Nition · Nov 11, 2014 at 08:24 PM 0
Share

Sure there is, that's the definition of a Compound Collider isn't it? But I'm not sure of the answer to paraself's question either.

avatar image
0

Answer by koirat · Sep 01, 2018 at 10:38 AM

Still no answer after so many years, I'm allowing myself to rephrase the question.

Is adding or moving colliders being part of a compound collider attached to single rigidbody incur additional performance drop.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

14 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

Related Questions

Controll squeeze of rigidbody between static collider and kinematic rigidbody. 1 Answer

Having a kinematic rigidbody detect collision with a collider without a rigidbody 7 Answers

Unity creating static colliders 1 Answer

make 2 object not collide? 2 Answers

Detecting a collider in 3D space. 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