mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
59 lines
1.9 KiB
ReStructuredText
59 lines
1.9 KiB
ReStructuredText
.. 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/<name>/doc_classes.
|
|
|
|
.. _class_InterpolatedCamera:
|
|
|
|
InterpolatedCamera
|
|
==================
|
|
|
|
**Inherits:** :ref:`Camera<class_camera>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Camera which moves toward another node.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+-------+-------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_target<class_InterpolatedCamera_set_target>` **(** :ref:`Object<class_object>` target **)** |
|
|
+-------+-------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_InterpolatedCamera_enabled:
|
|
|
|
- :ref:`bool<class_bool>` **enabled** - If ``true`` and a target is set, the camera will move automatically.
|
|
|
|
.. _class_InterpolatedCamera_speed:
|
|
|
|
- :ref:`float<class_float>` **speed** - How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
|
|
|
|
.. _class_InterpolatedCamera_target:
|
|
|
|
- :ref:`NodePath<class_nodepath>` **target** - The target's :ref:`NodePath<class_nodepath>`.
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
InterpolatedCamera is a :ref:`Camera<class_camera>` which smoothly moves to match a target node's position and rotation.
|
|
|
|
If it is not :ref:`enabled<class_InterpolatedCamera_enabled>` or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_InterpolatedCamera_set_target:
|
|
|
|
- void **set_target** **(** :ref:`Object<class_object>` target **)**
|
|
|
|
Sets the node to move toward and orient with.
|
|
|
|
|