InterpolatedCamera.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InterpolatedCamera" inherits="Camera" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. [i]Deprecated.[/i] Camera which moves toward another node.
  5. </brief_description>
  6. <description>
  7. [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.
  8. If it is not [member enabled] or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="set_target">
  14. <return type="void" />
  15. <argument index="0" name="target" type="Object" />
  16. <description>
  17. Sets the node to move toward and orient with.
  18. </description>
  19. </method>
  20. </methods>
  21. <members>
  22. <member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled" default="false">
  23. If [code]true[/code], and a target is set, the camera will move automatically.
  24. </member>
  25. <member name="process_mode" type="int" setter="set_process_mode" getter="get_process_mode" enum="InterpolatedCamera.InterpolatedCameraProcessMode" default="1">
  26. The camera's process callback. See [enum InterpolatedCameraProcessMode].
  27. </member>
  28. <member name="speed" type="float" setter="set_speed" getter="get_speed" default="1.0">
  29. How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
  30. </member>
  31. <member name="target" type="NodePath" setter="set_target_path" getter="get_target_path" default="NodePath(&quot;&quot;)">
  32. The target's [NodePath].
  33. </member>
  34. </members>
  35. <constants>
  36. <constant name="INTERPOLATED_CAMERA_PROCESS_PHYSICS" value="0" enum="InterpolatedCameraProcessMode">
  37. The camera updates with the [code]_physics_process[/code] callback.
  38. </constant>
  39. <constant name="INTERPOLATED_CAMERA_PROCESS_IDLE" value="1" enum="InterpolatedCameraProcessMode">
  40. The camera updates with the [code]_process[/code] callback.
  41. </constant>
  42. </constants>
  43. </class>