Struct InterpolatedCamera
Camera which moves toward another node.
struct InterpolatedCamera
;
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
Name | Type | Description |
---|---|---|
enabled [get, set]
|
bool | If true , and a target is set, the camera will move automatically.
|
speed [get, set]
|
double | How quickly the camera moves toward its target. Higher values will result in tighter camera motion. |
target [get, set]
|
NodePath | The target's NodePath .
|
Methods
Name | Description |
---|---|
getSpeed
|
|
getTargetPath
|
|
isInterpolationEnabled
|
|
setInterpolationEnabled
|
|
setSpeed
|
|
setTarget
|
Sets the node to move toward and orient with. |
setTargetPath
|