SmoothLookAt
Class in Zigurous.Animation
Declaration
public sealed class SmoothLookAt : MonoBehaviour
Description
Rotates toward the position of another transform using a smooth damping function.
Properties
target | The transform to look at. |
offset | The local offset position from the target's position that the camera looks at. |
space | The coordinate space in which the object rotates. |
constraints | Prevents rotation around the specified axes. |
damping | How quickly the transform rotates toward the target's position. Small numbers make the transform more responsive. Larger numbers make the transform respond more slowly. |
maxSpeed | The maximum amount the transform can rotate per update. |