Smooth movement question...

When using smooth damp, is there s way to have the object move different speeds when its going up versus when its going down? im using this script for my 2D platformer to have my camera track the player. when the player jumps, the speed is fine. but when they’re falling, I want the camera to move quicker so that the player can always see a bit of space between the character and the edge of the screen.

var target : Transform;
var smoothTime = 0.5;
private var velocity = Vector3.zero;
	
function Update () {
	var targetPosition : Vector3 = target.TransformPoint(Vector3(0, 3, -10));
		
	transform.position = Vector3.SmoothDamp(transform.position, targetPosition,velocity, smoothTime);
}

Why don’t you just use different parameters depending on whether your player is jumping or falling?
Concretely you can check the velocity.y of your player and then chose a different targetposition (the farther the targetposition, the faster the camera will move).