Look At Overview (3D)
Determines the rotational logic for a given PCam3D.
The different modes has different functionalities and purposes, so choosing the correct mode depends on what each PCam is meant to do.
Core Modes
Properties
look_at_mode
Type: LookAtEnum
Default: None
Value is based on LookAtMode enum.
| Look At Mode | Value |
|---|---|
| NONE | 0 |
| MIMIC | 1 |
| SIMPLE | 2 |
| GROUP | 3 |
Important
This property should not be changed during runtime, as such the setter for this has purposely been excluded.
To use another look_at_mode at runtime, switch to a separate PCam with the specific look_at_mode applied.
up
Type: Vector3
Default: Vector3(0, 1, 0)
Defines the upward direction of the PhantomCamera3D when look_at_mode is set.
This value will be overriden if up_target is defined.
up_target
Type: Node3D
Default: null
Applies and continuously updates the up direction of the PhantomCamera3D based on this target when look_at_mode is set.
Setting a value here will override the up value.
Methods
bool is_looking
Returns true if look_at_mode is not set to NONE and has a valid look_at_target.
Example
pcam.is_looking()