Slow down object about to collide

Hi! I want to know if there is a way to slow down a 2d object that it’s about to hit something, like a smooth landing. Animation is not an option in this case. My project just uses cubes that moves on x or y, there are no diagonal movements/collisions. Sorry if this question has already been made, I couldn’t find it. Thanks!!

Try adding Rigidbody2D into that 2d object and use Rigidbody2D.drag. Try creating a secondary gameObject that surrounds what the 2d object is about to hit and set that secondary gameObject’s collider to isTrigger. Then add a script into that secondary gameObject OnTriggerEnter2D to set the Rigidbody2D.drag to some value of the 2d object that enters.