https://paste.myst.rs/hxz2wu9y
I am making an auto runner game - and I've got a custom gravity system working relatively fine by my standards. I was trying to implement jump pads when I ran into some issues. First off, even though the jump pad was applying a constant velocity at an angle, the player was being launched straight up when they ran into the pad? I checked the pad's code and it was perfectly fine so the issue lies in the player controller. I feel my application of gravity and, for example, freezing of movement when an external force is applied are not optimal, but I don't know any good alternatives. Could someone help me get the system working for this use case and in a flexible way such that I can easily implement future potential forces like conveyor belts as well.
a powerful website for storing and sharing text and code snippets. completely free and open source.