SmoothFollow


Declaration

public sealed class SmoothFollow : MonoBehaviour

Description

Moves toward the position of another transform using a smooth damping function.

Properties

targetThe transform to follow.
offsetThe local offset position from the target's position that the camera moves toward.
spaceThe coordinate space in which the object moves.
constraintsPrevents movement around the specified axes.
dampingHow quickly the transform moves toward the target's position. Small numbers make the transform more responsive. Larger numbers make the transform respond more slowly.
maxSpeedThe maximum amount of units the transform can move per tick.