SmoothLookAt


Declaration

public sealed class SmoothLookAt : MonoBehaviour

Description

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

Properties

targetThe transform to look at.
offsetThe local offset position from the target's position that the camera looks at.
spaceThe coordinate space in which the object rotates.
constraintsPrevents rotation around the specified axes.
dampingHow quickly the transform rotates toward the target's position. Small numbers make the transform more responsive. Larger numbers make the transform respond more slowly.
maxSpeedThe maximum amount the transform can rotate per update.