For an overview of Resources, click here.
Overview
The Look At resource positions a character towards a target. This resource is a type of Character Action.
Required Fields
Field Name | Description |
---|---|
Character | Specifies the character doing the looking. |
Target | Specifies the scene object that the character looks at. Note: If you leave this field blank the character will look at the learner. |
Optional Fields
Field Name | Description |
---|---|
Transition Duration | Specifies how long the transition is into the Look At animation. |
Look Amount | *Total look amount multiplier for the rest of the settings (between 0 and 1 - one being strongest). |
Body Weight | *Amount body turns toward the target. |
Head Weight | *Amount head turns toward the target. |
Eyes Weight | *Amount eyes turn toward the target. |
Hold Duration | Specifies how long the character holds its gaze. |
Exit Duration | Specifies how long the character transitions out of its gaze. |
Priority | Gives action priority if there is more than one. |
*Training Tip: Character’s Body
If you leave the Target blank and have the character look at the learner, then as the leaner moves around in the scene the character’s gaze will follow. The character’s body will turn to follow unless you set the field to 0. We suggest setting the body to 0 or 0.1 and testing by moving around the scene as the character tracks you.
Events
Training Tip: Look At Events
If you leave the Target blank and have the character look at the learner, if the script closes the Look At Resource will stop. If you want it to continue, don’t close the script it is located in. On the flip side, if you want the Look At action to stop, and you don’t want to close the script, you can use a Deactivate Resource.
Example in the Headset
In the Workshop scene, I want Ted to look at the speaker for a few seconds.
In the Scene Objects frame, I've added the speaker as an object using the Scene Object resource:
Next, ensure the character (Ted) is spawned.
Add the Look At resource to a frame.
Add Ted as the character.
Set the Target; in this case the speaker.
Determine Body/Head/Eyes weight by testing (optional).
Determine Hold Duration (optional):
In the headset, you'll see the position of Ted and the music speaker. Ted will look at the speaker for 3 seconds and then stop looking.