2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-08-05 18:51:38 +02:00
<class name= "InterpolatedCamera" inherits= "Camera" version= "3.6" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 22:42:36 +02:00
<brief_description >
2020-09-16 15:36:40 +02:00
[i]Deprecated.[/i] Camera which moves toward another node.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2020-09-16 15:36:40 +02:00
[i]Deprecated (will be removed in Godot 4.0).[/i] InterpolatedCamera is a [Camera] which smoothly moves to match a target node's position and rotation.
2018-04-03 15:58:21 +02:00
If it is not [member enabled] or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "set_target" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "target" type= "Object" />
2017-09-12 22:42:36 +02:00
<description >
2018-04-03 15:58:21 +02:00
Sets the node to move toward and orient with.
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
<members >
2019-06-29 12:38:01 +02:00
<member name= "enabled" type= "bool" setter= "set_interpolation_enabled" getter= "is_interpolation_enabled" default= "false" >
2018-12-20 13:46:54 +01:00
If [code]true[/code], and a target is set, the camera will move automatically.
2017-09-12 22:42:36 +02:00
</member>
2020-08-18 18:29:32 +02:00
<member name= "process_mode" type= "int" setter= "set_process_mode" getter= "get_process_mode" enum= "InterpolatedCamera.InterpolatedCameraProcessMode" default= "1" >
The camera's process callback. See [enum InterpolatedCameraProcessMode].
</member>
2019-06-29 12:38:01 +02:00
<member name= "speed" type= "float" setter= "set_speed" getter= "get_speed" default= "1.0" >
2018-04-03 15:58:21 +02:00
How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "target" type= "NodePath" setter= "set_target_path" getter= "get_target_path" default= "NodePath("")" >
2018-03-30 19:15:38 +02:00
The target's [NodePath].
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
2020-08-18 18:29:32 +02:00
<constant name= "INTERPOLATED_CAMERA_PROCESS_PHYSICS" value= "0" enum= "InterpolatedCameraProcessMode" >
The camera updates with the [code]_physics_process[/code] callback.
</constant>
<constant name= "INTERPOLATED_CAMERA_PROCESS_IDLE" value= "1" enum= "InterpolatedCameraProcessMode" >
The camera updates with the [code]_process[/code] callback.
</constant>
2017-09-12 22:42:36 +02:00
</constants>
</class>