How to make a character bounce off a wall?

hhmm yeah…i had a look…wherever you got that code from I’d ask for your money back that’s horrific. It’s not really setup for bouncing or physics it would take rewriting the entire pawn actor, it’s setting the velocity rather than using physics to calculate the velocity. The settings are all wrong on the root component and head collision so they conflict with each other. The head component acts as an overlap object but it’s also blocking stuff aswell.

You need to add impulses rather than using ‘setphysicslinear’.

When you collide with objects its setting the velocity to 0 which is another reason it’s not bouncing.

Probably not what you want to hear but that will take someone with more time and willpower than me to sort out. I can send you a version where i’ve got it bouncing but the only way to get it to do that is by literally ripping out the entire Tick event and changing loads of settings on those two components so you’d have to redo whatever that horrific grabbing code is doing.

Sorry I couldn’t help more but…lifes to short mate :slight_smile: