IKLookAround

Inherits from IKLookBehavior

Declaration

public sealed class IKLookAround : IKLookBehavior

Description

Handles setting the IK position to look around in the camera direction.

Properties

lookTransformThe transform that represents the direction to look around. If not set Camera.main will be assigned automatically.
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 around.
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.