:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the InterpolatedCamera.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_InterpolatedCamera: InterpolatedCamera ================== **Inherits:** :ref:`Camera` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` *Deprecated.* Camera which moves toward another node. Description ----------- *Deprecated (will be removed in Godot 4.0).* InterpolatedCamera is a :ref:`Camera` which smoothly moves to match a target node's position and rotation. If it is not :ref:`enabled` or does not have a valid target set, InterpolatedCamera acts like a normal Camera. Properties ---------- +---------------------------------+-----------------------------------------------------------+------------------+ | :ref:`bool` | :ref:`enabled` | ``false`` | +---------------------------------+-----------------------------------------------------------+------------------+ | :ref:`float` | :ref:`speed` | ``1.0`` | +---------------------------------+-----------------------------------------------------------+------------------+ | :ref:`NodePath` | :ref:`target` | ``NodePath("")`` | +---------------------------------+-----------------------------------------------------------+------------------+ Methods ------- +------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_target` **(** :ref:`Object` target **)** | +------+--------------------------------------------------------------------------------------------------------------+ Property Descriptions --------------------- .. _class_InterpolatedCamera_property_enabled: - :ref:`bool` **enabled** +-----------+----------------------------------+ | *Default* | ``false`` | +-----------+----------------------------------+ | *Setter* | set_interpolation_enabled(value) | +-----------+----------------------------------+ | *Getter* | is_interpolation_enabled() | +-----------+----------------------------------+ If ``true``, and a target is set, the camera will move automatically. ---- .. _class_InterpolatedCamera_property_speed: - :ref:`float` **speed** +-----------+------------------+ | *Default* | ``1.0`` | +-----------+------------------+ | *Setter* | set_speed(value) | +-----------+------------------+ | *Getter* | get_speed() | +-----------+------------------+ How quickly the camera moves toward its target. Higher values will result in tighter camera motion. ---- .. _class_InterpolatedCamera_property_target: - :ref:`NodePath` **target** +-----------+------------------------+ | *Default* | ``NodePath("")`` | +-----------+------------------------+ | *Setter* | set_target_path(value) | +-----------+------------------------+ | *Getter* | get_target_path() | +-----------+------------------------+ The target's :ref:`NodePath`. Method Descriptions ------------------- .. _class_InterpolatedCamera_method_set_target: - void **set_target** **(** :ref:`Object` target **)** Sets the node to move toward and orient with. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`