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 OminStyle · Sep 16, 2015 at 01:04 AM · collisionunity5oncollisionenter

OnCollisionEnter is called before the actual collision

alt text I made a simple script that print's the name of the game object OnCollisionEnter for testing purposes. As you can see it prints out before the actual collision.

alt text And this is when the actual collision happens.

screen-shot-2015-09-15-at-121147-pm.png (176.5 kB)
screen-shot-2015-09-15-at-121500-pm.png (105.1 kB)
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 BowlerBitesLane · Sep 17, 2015 at 06:56 AM 0
Share

I suppose the implied question here is "Why is this occurring?". Please post the code so that the community has a bit more to go off of then this general statement.

Thank you.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Eno-Khaon · Sep 16, 2015 at 01:55 AM

OnCollisionEnter() is triggered as part of the FixedUpdate cycles of the physics engine and is effectively disconnected from the rendering process.

When the collision occurs, it's almost guaranteed to take place between rendering frames. Therefore, the render would typically come a fraction of a frame after the collision takes place.

Comment
Add comment · Show 1 · 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 OminStyle · Sep 16, 2015 at 05:52 AM -1
Share

The first image was taken after stopping at that exact position. The collision never occurred.

avatar image
0

Answer by Aily · Dec 18, 2018 at 11:57 AM

Disable PCM in physics settings, its little buggy. Generate contact info close to collision body, but in fact no collision.

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

6 People are following this question.

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

Related Questions

Sword slashing logic on Gear VR using controller? 0 Answers

How to detect collision without OnCollisionEnter or OnTriggerEnter? 1 Answer

Why the "Detonator Explosion Framework" from AssetStore don't render in compiled game? 0 Answers

Smooth movement for the block upon player collision,Smooth box movement 0 Answers

Help with collisions and destroy please 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