Look At

The Look At ability will use IK the have the character look at a point of interest. If there are multiple points of interest the character will look at the closest object. The ability inherits the Detect Object Ability Base ability allowing it to detect multiple triggers at a time.

The Look At ability only modifies the IK. If you want to change the camera rotation as well use the Assist Aim ability.

Setup

  1. Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.
  2. Add the Look At ability. On the Look At ability the Object Detection enum should be set to Trigger.
  3. Add the Object Identifier component to any of the trigger objects that the character should be able to look at.
  4. Set the ID of the Object Identifier component to a unique ID. This ID should then be set under the Look At’s Object ID field.

Inspected Fields

Field of View

The target object should be within the specified field of view (degrees).

Origin

The transform that the character should look from.