The Look At component can be used to make an object, the Rotating Target, always face towards another object, the Look At Target.
The Look At component is commonly used to create NPCs or hazards that track the player character but can be used in any situation where you want something in your Hype to face a certain direction based on the position of another object.
Rotating Target | The target object that will “look at” the other target |
Look At Target | The target object that will be “looked at” by the other target |
Execute | Executes the Node |
↳ On Start | Executes the Node at the start of the Game |
↳ Always | Executes the Node on each frame |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed |
Use Vector Input | Uses Vector position as a Look at target |
Look At Move Direction |
The object will face the direction it is moving With this option enabled there will be no Look At Target |
Affect Physical | Determines if the movement includes the objects physical form |
Local Rotate | Determines if the Rotating Target uses its local or global transform |
Free Rotate | Determines if the Rotating Target should rotate on a single axis or freely on all 3 axis |
Look At Vector | Input a vector from another node to determine where the object looks |
↳ X, Y & Z | Manually set the X, Y & Z coordinates the object should look at |
Speed | Set how quickly the Rotating Target will follow the Look At Target |
Slowing | Slows the movement of the Rotating Target |
Here's a link to the hype that shows how to implement and use the Look At node: