EDIT: I’m usinc C# but if you’re can answer me only in Java that’s okay, ill try to figure out how to do it in C#.
Hey, i’m pretty new to scripting and i’m having some trouble with the movement of my player.
I’ve been trying to get him to move/change directions(left/Right) instantly but i haven’t had any luck, using addforce isn’t giving me the instant, responsive change i want and with velocity i managed to come close to what i wanted i don’t really want to use velocity because of all the issues it apparently creates with other objects and physics.
Picture below shows what im trying to do, sorry for the bad paint skills but it might make it easier for you guys.
-
I want my player to start “falling” at a constant speed without accelerating and i’d like to be able to move left and right instantly (Can’t figure out how to do that using AddForce), i also want to be able to add a force in the opposite direction to “brake”
-
I want to have an object pick-up that when picked up instantly ads X amount of speed to my player for a few seconds,
Here is the Picture of what im after in the simplest form i could come up with