Is there a way to decelerate an actor in the y direction?
azelen22
Member, BASIC Posts: 3
I am trying to make an actor (the player) slowly come to a stop at the apex of their jump but I cannot seem to figure out how to make an actor decelerate with upward momentum. Any suggestions?
Best Answer
-
Braydon_SFX Posts: 9,273
Assuming you have a gravity force, make the actor jump by changing their motion.linearVelocity.y value. It'll quickly make them "jump", but it's not a constant force so your gravity should make it decelerate.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx