InterpolatedCamera.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InterpolatedCamera" inherits="Camera" category="Core" version="3.1.2">
  3. <brief_description>
  4. Camera which moves toward another node.
  5. </brief_description>
  6. <description>
  7. 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. </return>
  16. <argument index="0" name="target" type="Object">
  17. </argument>
  18. <description>
  19. Sets the node to move toward and orient with.
  20. </description>
  21. </method>
  22. </methods>
  23. <members>
  24. <member name="enabled" type="bool" setter="set_interpolation_enabled" getter="is_interpolation_enabled">
  25. If [code]true[/code], and a target is set, the camera will move automatically.
  26. </member>
  27. <member name="speed" type="float" setter="set_speed" getter="get_speed">
  28. How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
  29. </member>
  30. <member name="target" type="NodePath" setter="set_target_path" getter="get_target_path">
  31. The target's [NodePath].
  32. </member>
  33. </members>
  34. <constants>
  35. </constants>
  36. </class>