Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
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.