IKLookAtCamera
Inherits from IKLookBehavior
Declaration
public sealed class IKLookAtCamera : IKLookBehavior
Description
Handles setting the IK position to look at the camera.
Properties
camera | The camera to look at. |
lookAtPosition | The point the character is looking at. |
weight | The weight of the look at position (0=none, 1=full). |
maxLookAngle | The maximum angle the character can turn their head to look at the camera. |
weightDamping | How quickly the look at weight changes. Smaller values change the weight more quickly. |
positionDamping | How quickly the look at position changes. Smaller values change the position more quickly. |
Methods
Start | A Unity lifecycle method called the first frame the behavior is enabled. |
UpdateIK | Updates the IK solution. |
Inherited
Properties
head | The transform of the head bone. |
animator | The animator component the IK solution is applied to. |