InterpolatedCamera¶
Inherits: Camera < Spatial < Node < Object
Deprecated. Camera which moves toward another node.
Description¶
Deprecated (will be removed in Godot 4.0). InterpolatedCamera is a Camera which smoothly moves to match a target node's position and rotation.
If it is not enabled or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
Properties¶
|
||
|
||
|
||
|
Methods¶
void |
set_target ( Object target ) |
Enumerations¶
enum InterpolatedCameraProcessMode:
InterpolatedCameraProcessMode INTERPOLATED_CAMERA_PROCESS_PHYSICS = 0
The camera updates with the _physics_process
callback.
InterpolatedCameraProcessMode INTERPOLATED_CAMERA_PROCESS_IDLE = 1
The camera updates with the _process
callback.
Property Descriptions¶
bool enabled = false
If true
, and a target is set, the camera will move automatically.
InterpolatedCameraProcessMode process_mode = 1
void set_process_mode ( InterpolatedCameraProcessMode value )
InterpolatedCameraProcessMode get_process_mode ( )
The camera's process callback. See InterpolatedCameraProcessMode.
float speed = 1.0
How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
NodePath target = NodePath("")
The target's NodePath.
Method Descriptions¶
void set_target ( Object target )
Sets the node to move toward and orient with.