I want to use a joystick to move an object in a scene. That object is a physics object and should react to forces (primarily collisions) while still trying to move in the direction the joystick is pointing.
I am currently setting the object’s velocity to the direction the joystick is pointing while it is being held. This works as far as moving the object goes, but it does not react to forces well since its velocity is getting set every frame while the joystick is held.
As such, I was wondering if there was some kind of function similar to transition.to for setting velocity, such that while the joystick is being held the object’s velocity is constantly easing toward the direction being held. If this is possible, when the object receives an external force, it will react and then ease back to the held direction. That way the joystick would work for moving the object while also enabling a tunable resistance to external forces.