2017-09-13 04:42:36 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2018-02-27 20:40:43 +08:00
|
|
|
<class name="InterpolatedCamera" inherits="Camera" category="Core" version="3.1">
|
2017-09-13 04:42:36 +08:00
|
|
|
<brief_description>
|
2018-03-31 01:15:38 +08:00
|
|
|
Camera which moves toward another node
|
2017-09-13 04:42:36 +08:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2018-03-31 01:15:38 +08:00
|
|
|
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.
|
2017-09-13 04:42:36 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="set_target">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="target" type="Object">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2018-03-31 01:15:38 +08:00
|
|
|
Set the node to move toward.
|
2017-09-13 04:42:36 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2017-09-13 14:49:40 +08:00
|
|
|
<member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled">
|
2018-03-31 01:15:38 +08:00
|
|
|
If [code]true[/code], and a target is set, the camera will move automatically.
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
2017-09-13 14:49:40 +08:00
|
|
|
<member name="speed" type="float" setter="set_speed" getter="get_speed">
|
2018-03-31 01:15:38 +08:00
|
|
|
How quickly the camera moves.
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
2017-09-13 14:49:40 +08:00
|
|
|
<member name="target" type="NodePath" setter="set_target_path" getter="get_target_path">
|
2018-03-31 01:15:38 +08:00
|
|
|
The target's [NodePath].
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|