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
0
Question by RedLord · Feb 12, 2014 at 10:17 AM · rigidbodycolliderphysic

How does object shape influence its collision?

I created a simple 3d arrow (a box deformed from one side) and imported it to unity. Then I added a rigidbody and a sphere collider to it.

When the sphere contains the arrow inside it, the arrow interacts with terrain like the sphere, which is ok.

But when the sphere is inside the mesh, it just falls to the ground without any rotation afterwards.

1)I have no idea what does collider mean, as the unity script reference defines it as "A base class of all colliders". I thought it is some kind of hitbox, but my object's behavior in the second case, shows that I was wrong.

2)Besides, without adding a rigidbody the physics does nothing. So, it should somehow interact with the collider. Is it explained somewhere?

3)I need to specify a sub-object to my arrow which collision can easily be calculated by the engine. How can I do it?

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

3 Replies

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

Answer by Ashish Dwivedi · Feb 12, 2014 at 11:56 AM

Add physics material to your sphere collider and check behaviour of your collider be changing the values of physics material. Add rigidbody to sphere and set drag , angular drag etc and keep checking then you will absolutely find how the shape influences the collision.

Comment
Add comment · Show 4 · 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 RedLord · Feb 12, 2014 at 06:01 PM 0
Share

Then, I'll check how the physic values influence the collision. $$anonymous$$y problem is that my mesh receives collision by parts, where there are no colliders. Arrow

this collides like an arrow, not like a spere, regardless of material and rigidody type. And I can't what settings are responsible for it

avatar image Ashish Dwivedi · Feb 13, 2014 at 03:53 AM 0
Share

$$anonymous$$ake sure there is no other collider on arrow except sphere collider. Is your arrow is made by using parent and child? If yes then check the collider on all the child object and as well as parent. If not then can you show me only inspector snapshot?

avatar image RedLord · Feb 13, 2014 at 09:43 AM 0
Share

i1

i2

As I can see, there are no other colliders.I'm trying to upload the project to filedropper, but it takes time.

avatar image RedLord · Feb 13, 2014 at 09:54 AM 0
Share

$$anonymous$$y error. Actually it didn't collide like an arrow. Thanks a lot.

avatar image
0

Answer by RedLord · Feb 13, 2014 at 12:16 PM

I forgot that the engine uses quite approximate physics models. The sphere falling from the height got no angular velocity, so it looked like a fall of a box.

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 KuPAfoo · Feb 13, 2014 at 09:59 AM

Rigidbody reacts to physics

Colliders are for registering another collider has collided with the primary collider

A lot of times you will need a rigidbody and collider on the same object.

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.

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Rigidbodys 0 Answers

Sprite does not rotate with a CircleCollider2D 1 Answer

Collision Problem 1 Answer

collision child with rigidbody in parent 0 Answers

OnCollisionEnter but have colliding object not move the object it collides with 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