InterpolatedCamera

Inherits: Camera < Spatial < Node < Object

Camera which moves toward another node.

Description

InterpolatedCamera is a Camera which smoothly moves to match a target node’s position and rotation.

If it is not enabled or does not have a valid target set, InterpolatedCamera acts like a normal Camera.

Properties

boolenabledfalse
floatspeed1.0
NodePathtargetNodePath("")

Methods

voidset_target ( Object target )

Property Descriptions

Defaultfalse
Setterset_interpolation_enabled(value)
Getteris_interpolation_enabled()

If true, and a target is set, the camera will move automatically.


Default1.0
Setterset_speed(value)
Getterget_speed()

How quickly the camera moves toward its target. Higher values will result in tighter camera motion.


DefaultNodePath("")
Setterset_target_path(value)
Getterget_target_path()

The target’s NodePath.

Method Descriptions

  • void set_target ( Object target )

Sets the node to move toward and orient with.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.