Knife bounce-back

I’m trying to get the knife to bounce off of enemies (but i don’t want to make it solid)
the collision doesn’t render fast enough so the knife just goes through the enemies and then just repeatedly bounces… any way to fix this??

code in the ‘knife’ object


maybe you could use a raycast?
you could cast in the direction the knife is making and increase the distance so that it will bounce before it goes past the enemy

Edit: this seems to look good

Edit 2: Actually you could just get rid of these timers and it works still

1 Like