IKLookAtCamera

Inherits from IKLookBehavior

Declaration

public sealed class IKLookAtCamera : IKLookBehavior

Description

Handles setting the IK position to look at the camera.

Properties

cameraThe camera to look at.
lookAtPositionThe point the character is looking at.
weightThe weight of the look at position (0=none, 1=full).
maxLookAngleThe maximum angle the character can turn their head to look at the camera.
weightDampingHow quickly the look at weight changes. Smaller values change the weight more quickly.
positionDampingHow quickly the look at position changes. Smaller values change the position more quickly.

Methods

StartA Unity lifecycle method called the first frame the behavior is enabled.
UpdateIKUpdates the IK solution.
Inherited

Properties

headThe transform of the head bone.
animatorThe animator component the IK solution is applied to.