Comparing a float

Without using another variable I don’t know a way either.

I mean you have to know what the old position of your object was right?

Though you might wanna cheat in this case and simply turn off physics when the player is not pressing anything and simply playing an animation or something like that.

Because stabilizing the physics will take quite a while.

I am trying to take a float and simply see if it increased or decreased but not by another variable. I’m not sure how to do that in blueprint.

For my project, I am trying to increase and decrease the world position of an object on the Z axis with the physics thruster component. When the user press a key, the thrusters kick in and the object would ascend but when the user lets go of the key input, it would try to stabilize at its current world position. This is to keep the object floating in place.

Thank you for replying. I would rather avoid that solution unless I have no other options.
For what I’m going for, it’s heavy dependent on physics. If possible.

Well solution for the float still stands.

The other one would safe you quite a bit of time but if this part is important by all means go for the physics version. It will feel better in the end. It’s just not really worth it if you can get very similar results with an animation.

But I don’t really know your project from begin with :wink:

Ok! I’ll give this method a try. Thank you again.

Ya I like this method. I didn’t add the animation but turning off gravity when the user no longer pressed the input button and adding a clamp worked nicely. I was able to smoothly ease the object to position with the clamp.