Skip to content

Mimic Look At (3D)

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

Properties

look_at_target

Type: Node3D

Default: null

Determines which Node3D should be looked at. The PCam3D will update its rotational value as the target changes its position.


Setter

void set_look_at_target(Node3D target)

Example
gdscript
pcam.set_look_at_target(target_node)

Getter

Node3D get_look_at_target()

Example
gdscript
pcam.get_look_at_target()

look_at_damping

Type: bool

Default: false

Applies a damping effect on the Camera3D's rotation. Leading to heavier / slower camera turning as the targeted node moves around.

This is useful to avoid sharp and rapid camera rotational movement.


Setter

void set_look_at_damping(bool enable)

Example
gdscript
pcam.set_look_at_damping(true)

Getter

bool get_look_at_damping()

Example
gdscript
pcam.get_look_at_damping()

look_at_damping_value

Type: float

Default: false

Defines the damping amount. The ideal range should be somewhere between 0-1, likely somewhere around 0.1-0.25.

Lower value = faster / sharper camera movement. Higher value = slower / heavier camera movement.


Setter

void set_look_at_damping_value(float damping_value)

Example
gdscript
pcam.set_look_at_damping_value(true)

Getter

float get_look_at_damping_value()

Example
gdscript
pcam.get_look_at_damping_value()