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
Activate, Close (if you use a Hold Duration), Complete (if you use a Hold Duration)
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 Office environment, I want the character Chad to look at me (the learner).
As Chad is a character, I will use the Spawn Asset Resource first to spawn him into the scene
In the script where you will add the Look At Resource, add the character in as a Scene Object:
In the next frame, I’ve added the Look At Resource
Character = Chad
Look At = (blank)
We are leaving Look At blank so that Chad looks at the learner. I’ve also set the Eyes and Body Weight (optional):
In my scenario I’ve also added a Screen Message to let the learner know what the scene is about and I’ve added an Apply Effect Resource to have Chad stand up from the chair and used the Facial Expression Resource to make Chad look angry.
In the headset we’ve captured what it would look like before and after using the Look At Resource so that you can see the difference. In the “After” version, note that Chad is still looking at the learner when he is sitting down as well as standing up:
https://vimeo.com/724959439View the video full screen on Vimeo at this link.