Skip to content

Simple Look At (3D)

Looks At the target with an optional offset.

Video Example

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.

Note: During runtime, properties should be modified and read via their setters & getters respectively.


Setter

void set_look_at_target(Node3D target)

Example
gdscript
pcam.set_look_at_target(node_name)

Getter

Node3D get_look_at_target()

Example
gdscript
pcam.get_look_at_target()

Look At Offset

Type: Vector3

Default: null

Offsets the target's Vector3 position that the PCam3D is looking at.

Note: During runtime, properties should be modified and read via their setters & getters respectively.


Setter

void set_look_at_target_offset(Vector3 offset)

Example
gdscript
pcam.set_look_at_target_offset(Vector3(0.5, 2.5, 0))

Getter

Vector3 get_look_at_target_offset()

Example
gdscript
pcam.get_look_at_target_offset()