W3cubDocs

/Godot 3.0

InterpolatedCamera

Inherits: Camera < Spatial < Node < Object

Category: Core

Brief Description

Camera which moves toward another node.

Member Functions

void set_target ( Object target )

Member Variables

  • bool enabled - If true and a target is set, the camera will move automatically.
  • float speed - How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
  • NodePath target - The target’s NodePath.

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.

Member Function Description

void set_target ( Object target )

Sets the node to move toward and orient with.

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