Group Look At (3D)
Allows for multiple targets to be looked at. The Pcam3D
will create a AABB
that surrounds the targets and will look at the centre of it.
Video Example
Properties
Look At Group
Type: Array[Node3D]
Default: null
Defines the group of targets that the camera should be looking at. It will be looking at the centre of all the assigned targets.
Note: During runtime, properties should be modified and read via their setters & getters respectively.
Setter
void
append_look_at_group_node(Node3D
target_node)
void
append_look_at_group_node_array(Array[Node3D]
target_nodes)
void
erase_look_at_group_node(Node3D
target_node)
Example
gdscript
# Appends one node to the Look At Group
pcam.append_look_at_group_node(target)
# Appends an array of nodes to the Look At Group
pcam.append_look_at_group_node_array(targets)
# Removes a node from the Look At Group
pcam.erase_look_at_group_node(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))