How to make a trampoline with physics? Need to vary the angle depending on the position the character comes from.
I did like this:
Apply thrust to the angle (angle(trampoline.X, trampoline.Y,character_1.X,character_1.Y));
But the character goes flying to random angles!
How can i solve this?
Develop games in your browser. Powerful, performant & highly capable.
You must apply force to the angle (angle(trampoline.X, trampoline.Y,character.X,character.Y));
That should fix it.