Search Unity

OnCollisionStay

Discussion in 'Editor & General Support' started by Richard_B, Aug 8, 2005.

  1. Richard_B

    Richard_B

    Joined:
    Jul 22, 2005
    Posts:
    436
    Is the following manual entry (for Monobehaviour) correct?


    Should "has stopped" not be "is still" - or am I missing something.

    Richard.
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    The docs are wrong. (Fixed it now)

    OnCollisionStay is called once every fixed step frame as long as 2 rigidbodies or rigidbody-colliders are in contact.

    OnCollisionEnter is called when two rigidbodies/colliders get in contact and havent been in the frame before.

    OnCollisionExit is called when two rigidbodies/colliders stop being in contact but have been in contact the frame before.