Search Unity

How to allow a rigidbody to pass through a collider without losing velocity

Discussion in 'Physics' started by NotGoodEnoughh, Aug 21, 2019.

  1. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    When a bullet hit's a wall calls OnCollisionEnter that calls CalcImpact method and when OnCollisionEnter called, bullet's velocity is wrong. How can I detect a collision before(I know only one way - short raycast) or do not change a velocity?