[DOCS] Some content for InterpolatedCamera

(cherry picked from commit c05d12384a)
This commit is contained in:
Mel Collins 2018-03-30 19:15:38 +02:00 committed by Hein-Pieter van Braam
parent 307fcb2713
commit 19a010cc3a
1 changed files with 7 additions and 0 deletions

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="InterpolatedCamera" inherits="Camera" category="Core" version="3.0.2"> <class name="InterpolatedCamera" inherits="Camera" category="Core" version="3.0.2">
<brief_description> <brief_description>
Camera which moves toward another node
</brief_description> </brief_description>
<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> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>
@ -15,15 +18,19 @@
<argument index="0" name="target" type="Object"> <argument index="0" name="target" type="Object">
</argument> </argument>
<description> <description>
Set the node to move toward.
</description> </description>
</method> </method>
</methods> </methods>
<members> <members>
<member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled"> <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>
<member name="speed" type="float" setter="set_speed" getter="get_speed"> <member name="speed" type="float" setter="set_speed" getter="get_speed">
How quickly the camera moves.
</member> </member>
<member name="target" type="NodePath" setter="set_target_path" getter="get_target_path"> <member name="target" type="NodePath" setter="set_target_path" getter="get_target_path">
The target's [NodePath].
</member> </member>
</members> </members>
<constants> <constants>