Hey guys I have simple knockback effect when the player gets hit, it uses a move into direction -z for a simple solution. however if im right next to a wall the knockback will always knock me through it.

is there a solution to that?
Shadowcaste
  • I'm sure it has, but check if the wall has a collider, and potentially a rigidbody :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • rigidbody will help with that?
    if so ive got a lot of rigidbodies to add lol
    Shadowcaste
  • At least 1 rigidbody needs to be involved, since you move via rigidbody, there already should be one. You can try if one on a wall helps - also, you might want to play a bit with your player's rigidbody setup.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.