Skip to content

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 ​

image alt

Glued​

The simplest of the available options. Effectively copies the rotational value of the targeted Node3D.

image alt

Simple​

Keeps a persistent forward direction towards a target.

image alt

Group​

Allows for multiple targets to be looked at. The camera will look at the centre of the assigned targets' Vector3 coordinate.

Properties ​

Look At Mode ​

Type: LookAtEnum

Default: None

Gets Look At Mode. Value is based on Constants.LookAtMode enum.

Look At ModeValue
NONE0
MIMIC1
SIMPLE2
GROUP3

Note: The Setter for Look At Mode has purposely not been added.
A separate PCam3D should be used instead.


Getter ​

int get_look_at_mode()

Example
gdscript
pcam.get_look_at_mode()