...
The Look At resource positions a character towards a target. This resource is a type of Character Action.
Required Fields
...
View file | ||
---|---|---|
|
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. |
...
*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
Complete, Activate. 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.
...
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:
...
Next, after the asset is spawnedIn the next frame, I’ve added the Look At Resource
Character = Chad
Look At = (blank)
...