W3cubDocs

/Godot 3.1

InterpolatedCamera

Inherits: Camera < Spatial < Node < Object

Category: Core

Brief Description

Camera which moves toward another node.

Properties

bool enabled
float speed
NodePath target

Methods

void set_target ( Object target )

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.

Property Descriptions

bool enabled

Setter set_interpolation_enabled(value)
Getter is_interpolation_enabled()

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

float speed

Setter set_speed(value)
Getter get_speed()

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

NodePath target

Setter set_target_path(value)
Getter get_target_path()

The target’s NodePath.

Method Descriptions

void set_target ( Object target )

Sets the node to move toward and orient with.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_interpolatedcamera.html