Ask here your questions to get help using GDevelop.
By PencilP
#62184 How can I make a projectile bounce of a surface which is at an oblique angle? In the game I'm making the player object can rotate 360 degrees and has a shield in front of it that the projectile should bounce off but I have been unable to get it to do so.
User avatar
By Lizard-13
#63378 Here is a way to reflect a vector around a normal:
(4.67 KiB) Downloaded 62 times

You can shoot the bullet dragging the angle with the mouse, it works in the opposite side of the wall too (pure physics symmetry, didn't intended it) but the normal is drawn incorrectly :P

The reflection is calculated in just one expression, to understand it easier check the image (a little trick that flashed into my mind):
Reflect.png (36.87 KiB) Viewed 1687 times