Skip to content

Follow Overview

Determines the positional logic for a given PCam.

The different modes have different functionalities and purposes, so choosing the correct one depends on what each PCam is meant to do.

Core Modes

image alt

Glued

Sticks to its target.

image alt

Simple

Follows its target with an optional offset.

image alt

Group

Follows multiple targets with the option to dynamically reframe itself as targets move further apart.

image alt

Path

Follows a target while being positionally confined to a Path node.

image alt

Framed

Applies a dead zone to the frame and only follows its target when it tries to leave it.

image alt

Third Person

Applies a SpringArm3D node to its target and allows for rotating around it.

Properties

follow_mode

Type: int

Default: 0

Defines the current Follow Mode of the PCam based on FOLLOW_MODE enum.

Follow ModeValue
NONE0
GLUED1
SIMPLE2
GROUP3
PATH4
FRAMED5
THIRD PERSON6

Only Third Person Follow is exclusive to 3D scenes.

Note

The Setter for Follow Mode has purposely not been added.
A separate PCam should be used instead.


Getter

int get_follow_mode()

Example
gdscript
pcam.get_follow_mode()