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.
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.
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)