Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to make a prefab bounce/being reflected?

Discussion in '2D' started by SebGM2019, Mar 12, 2020.

  1. SebGM2019

    SebGM2019

    Joined:
    Aug 3, 2018
    Posts:
    34
    Hi guys, I'm making a game where you are supposed to shoot, and this projectile can be reflected by an specific kind of wall.

    (Something like this)
    I was thinking about creating a prefab based on the projectile (a copy), instantiate it and apply a force to it with the original projectile's values but in negative ones (for position and rotation).
    Is this an efficient way of doing it or is there any better solution?
     
  2. unit_dev123

    unit_dev123

    Joined:
    Feb 10, 2020
    Posts:
    989
    maybe watch breakout tut
     
  3. SebGM2019

    SebGM2019

    Joined:
    Aug 3, 2018
    Posts:
    34
    Do you have any link?
     
  4. unit_dev123

    unit_dev123

    Joined:
    Feb 10, 2020
    Posts:
    989