mirror of
https://github.com/Relintai/pandemonium_engine_docs.git
synced 2025-01-23 15:17:21 +01:00
136 lines
5.9 KiB
ReStructuredText
136 lines
5.9 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. DO NOT EDIT THIS FILE!!!
|
|
.. Generated automatically from Godot engine sources.
|
|
.. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py.
|
|
.. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/InterpolatedCamera.xml.
|
|
|
|
.. _class_InterpolatedCamera:
|
|
|
|
InterpolatedCamera
|
|
==================
|
|
|
|
**Inherits:** :ref:`Camera<class_Camera>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
*Deprecated.* Camera which moves toward another node.
|
|
|
|
Description
|
|
-----------
|
|
|
|
*Deprecated (will be removed in Godot 4.0).* 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_property_enabled>` or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
|
|
|
|
Properties
|
|
----------
|
|
|
|
+---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`enabled<class_InterpolatedCamera_property_enabled>` | ``false`` |
|
|
+---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
|
|
| :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` | :ref:`process_mode<class_InterpolatedCamera_property_process_mode>` | ``1`` |
|
|
+---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
|
|
| :ref:`float<class_float>` | :ref:`speed<class_InterpolatedCamera_property_speed>` | ``1.0`` |
|
|
+---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
|
|
| :ref:`NodePath<class_NodePath>` | :ref:`target<class_InterpolatedCamera_property_target>` | ``NodePath("")`` |
|
|
+---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
|
|
|
|
Methods
|
|
-------
|
|
|
|
+------+--------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_target<class_InterpolatedCamera_method_set_target>` **(** :ref:`Object<class_Object>` target **)** |
|
|
+------+--------------------------------------------------------------------------------------------------------------+
|
|
|
|
Enumerations
|
|
------------
|
|
|
|
.. _enum_InterpolatedCamera_InterpolatedCameraProcessMode:
|
|
|
|
.. _class_InterpolatedCamera_constant_INTERPOLATED_CAMERA_PROCESS_PHYSICS:
|
|
|
|
.. _class_InterpolatedCamera_constant_INTERPOLATED_CAMERA_PROCESS_IDLE:
|
|
|
|
enum **InterpolatedCameraProcessMode**:
|
|
|
|
- **INTERPOLATED_CAMERA_PROCESS_PHYSICS** = **0** --- The camera updates with the ``_physics_process`` callback.
|
|
|
|
- **INTERPOLATED_CAMERA_PROCESS_IDLE** = **1** --- The camera updates with the ``_process`` callback.
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_InterpolatedCamera_property_enabled:
|
|
|
|
- :ref:`bool<class_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_process_mode:
|
|
|
|
- :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` **process_mode**
|
|
|
|
+-----------+-------------------------+
|
|
| *Default* | ``1`` |
|
|
+-----------+-------------------------+
|
|
| *Setter* | set_process_mode(value) |
|
|
+-----------+-------------------------+
|
|
| *Getter* | get_process_mode() |
|
|
+-----------+-------------------------+
|
|
|
|
The camera's process callback. See :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>`.
|
|
|
|
----
|
|
|
|
.. _class_InterpolatedCamera_property_speed:
|
|
|
|
- :ref:`float<class_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<class_NodePath>` **target**
|
|
|
|
+-----------+------------------------+
|
|
| *Default* | ``NodePath("")`` |
|
|
+-----------+------------------------+
|
|
| *Setter* | set_target_path(value) |
|
|
+-----------+------------------------+
|
|
| *Getter* | get_target_path() |
|
|
+-----------+------------------------+
|
|
|
|
The target's :ref:`NodePath<class_NodePath>`.
|
|
|
|
Method Descriptions
|
|
-------------------
|
|
|
|
.. _class_InterpolatedCamera_method_set_target:
|
|
|
|
- void **set_target** **(** :ref:`Object<class_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.)`
|