File: InterpolatedCamera.xml

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (43 lines) | stat: -rw-r--r-- 2,124 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8" ?>
<class name="InterpolatedCamera" inherits="Camera" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		[i]Deprecated.[/i] Camera which moves toward another node.
	</brief_description>
	<description>
		[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.
		If it is not [member enabled] or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="set_target">
			<return type="void" />
			<argument index="0" name="target" type="Object" />
			<description>
				Sets the node to move toward and orient with.
			</description>
		</method>
	</methods>
	<members>
		<member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled" default="false">
			If [code]true[/code], and a target is set, the camera will move automatically.
		</member>
		<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>
		<member name="speed" type="float" setter="set_speed" getter="get_speed" default="1.0">
			How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
		</member>
		<member name="target" type="NodePath" setter="set_target_path" getter="get_target_path" default="NodePath(&quot;&quot;)">
			The target's [NodePath].
		</member>
	</members>
	<constants>
		<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>
	</constants>
</class>