IKLookAtTarget
Inherits from IKLookBehavior
Declaration
public sealed class IKLookAtTarget : IKLookBehavior
Description
Handles setting the IK position to look at nearby target objects.
Properties
target | The current target being looked at. |
targetOverride | Override the target to look at. |
targetLayers | The layers to scan for targets. |
obstacleLayers | The layers to scan for obstacles to determine if a target is obstructed. |
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 a target. |
maxDistance | The maximum distance away the character will look at a target. |
maxHeightDifference | The maximum elevation difference the character will look at a target. |
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
UpdateIK | Updates the IK solution. |
Inherited
Properties
head | The transform of the head bone. |
animator | The animator component the IK solution is applied to. |