• 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 saliljain · Oct 13, 2011 at 10:54 PM · collisiongravitybounce

Object falling because of gravity and penetrating another object

Object A falling positioned at (0,20,0) and Object B placed at (0,0,0) A is a box collider and B is mesh collider Physics material for both have bounciness 1. Gravity (0,-9.8,0) applied on A, B doesn't uses gravity Now A falls through B and doesn't stop. The collision happens but there is no bouncing happening.

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 DayyanSisson · Oct 13, 2011 at 11:17 PM 0
Share

Do you have rigidbody on Object A?

avatar image jtbentley · Oct 14, 2011 at 12:23 AM 0
Share

Sounds like your world scale might be out

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Owen-Reynolds · Oct 13, 2011 at 11:45 PM

What do you mean "gravity -9.8 applied on A"? Unless you dig into the physics settings, a rigidbody falls w/o you doing anything special. If a script is moving the transform, based on a gravity var, the object is technically micro-teleporting, and will go through anything. Collisions happen when you let the physics engine do the work.

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 Bunny83 · Oct 14, 2011 at 12:25 AM 0
Share

I've converted your comment into an answer ;)

avatar image saliljain · Oct 14, 2011 at 10:00 AM 0
Share

There was no script involved. I realized if in collider I enable trigger, it doesn't collide naturally. Now it works fine.

avatar image Owen-Reynolds · Oct 14, 2011 at 02:48 PM 0
Share

[Edit in response to Bunny] Collider/trigger is a little confusing for someone with a more gamey background. Unity "triggerBoxes" are commonly known as Bounding Volumes and $$anonymous$$ill Volumes. Colliders in UnReal appear to be nothing like them -- they are a detail setting on the model, without direct control of the geometry such as Unity has/requires. In Torque, colliders are created in the modelling program, also nothing like Bounding Volumes.

Unity seems like it was written by people who think more like programmers. The code for colliders/triggers is 99% the same, so no components with the familiar Bounding Volume name -- ins$$anonymous$$d isTrigger colliders.

avatar image Bunny83 · Oct 14, 2011 at 09:43 PM 0
Share

@Owen Reynolds : I'm not sure what you're referring to ( i haven't used UnReal yet ;) ). A collider is usually a bounding volume. Every collider in Unity have also a bounds property that gives you the AABB of that collider. Same for Renderer which gives you the AABB of the model-geometry. Even the $$anonymous$$esh itself have it's own bounding box and is not related to the colliders or something else.

Unity strictly seperates the model from it's collider (since a collider is a pure logical thing for collisions). You can also use a meshcollider but use a different mesh as mesh-source for the collider (e.g. a simpler mesh).

The isTrigger option turns the collider into something totally different. It's not a collider for the physics system anymore. It's just an area / volume that can detect other colliders.

avatar image
0

Answer by puntawat1412 · Oct 22, 2020 at 05:35 AM

You can use the collision detection by setting it as continuous dynamic to handle faster object. This won't make the object penetrate each other

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

False collision at the edge of hole when using high gravity value 1 Answer

Collisions are driving me mad! My sanity is fading fast... 3 Answers

Object gravity but no collisions 0 Answers

Custom Controller 1 Answer

Bouncing on 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