Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feedback Collider.OnTriggerEnter documentation misleading?

Discussion in 'Physics' started by codebiscuits, Feb 28, 2024.

  1. codebiscuits

    codebiscuits

    Joined:
    Jun 16, 2020
    Posts:
    105
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    8,241
    Report the documentation on the page if you feel it needs improving.
     
    codebiscuits likes this.
  3. peadar-buckeejit

    peadar-buckeejit

    Joined:
    Aug 15, 2022
    Posts:
    3
    It says "no collision happens" I would read this as
    OnCollisionEnter
    will not be called. Not that
    OnTriggerEnter
    will not be called.

    As for the other post you commented on, it may have something to do with hierarchical trigger calls. I see no reference to where that script sits or where in the hierarchy the weapon is and if there are other colliders on parents of the weapon. All of this will affect if a trigger/collider event gets called.
     
    codebiscuits likes this.