Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Manipulating collision behavior while collision starts happening

Discussion in 'Physics' started by artyomich365, May 24, 2023.

  1. artyomich365


    Apr 27, 2019
    Hello, i searched a lot and decided to write question myself. In my game i want to make bullets pass through if some critical chance happened and stop if not.

    For now im using OnCollitionEnter2D in my bullet to call event that makes another object to do some business logic(for example take critical chance odd, deal damage to target) and delete bullet.

    So for me it would be cool to have an ability to detect collision, make callback to my another object and decide to pass my object through(maybe ignore collision) or stop/delete.