summaryrefslogtreecommitdiff
path: root/doc/classes/InterpolatedCamera.xml
blob: b4047f450d5e4bef6d172fe3088169c0deb856f2 (plain)
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
<?xml version="1.0" encoding="UTF-8" ?>
<class name="InterpolatedCamera" inherits="Camera" category="Core" version="3.1">
	<brief_description>
		Camera which moves toward another node
	</brief_description>
	<description>
		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>
	<demos>
	</demos>
	<methods>
		<method name="set_target">
			<return type="void">
			</return>
			<argument index="0" name="target" type="Object">
			</argument>
			<description>
				Set the node to move toward.
			</description>
		</method>
	</methods>
	<members>
		<member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled">
			If [code]true[/code], and a target is set, the camera will move automatically.
		</member>
		<member name="speed" type="float" setter="set_speed" getter="get_speed">
			How quickly the camera moves.
		</member>
		<member name="target" type="NodePath" setter="set_target_path" getter="get_target_path">
			The target's [NodePath].
		</member>
	</members>
	<constants>
	</constants>
</class>