i want to know how can i make a directional bounce

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By offbet

basically i want to make a kinematicBody2d to bounce in a different direction than a normal bounce would using move_and_collide

:bust_in_silhouette: Reply From: astroboogie

If move_and_collide returns a collision, modify your existing velocity vector using vector math.

For example, if upon colliding you want the node to travel in the same direction it came from, you can multiply its velocity by -1.