InterpolatedCamera.xml 1.3 KB

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