Skip to content

CineCam3D class reference ‐ CineCam wiki

Lukas Schmidt edited this page May 28, 2024 · 14 revisions

CineCam3D

Inherits: Camera3DNode3DNodeObject

Description

This help document refers to CineCam3D class!
Main Camera for the CineCam3D.
Features include camera shaking, camera blending to VirtualCam3D, targeting CamTarget3D and more.

Links

Camera shaking

Inspector

Properties

Type Property Hint
BlendData3D blend_data -
bool blend_pause default: false
CamSequence3D current_sequence -
FollowMode follow_mode default: 0
bool follow_prio_pause default: false
bool follow_target_pause -
CamSequence3D look_at_target default: false
bool sequence_pause default: false
float shake_offset_duration default: 0.0
Vector3 shake_offset_intensity default: Vector3(0, 0, 0)
float shake_rotation_duration default: 0.0
float shake_rotation_intensity default: 0.0
float shake_fov_duration default: 0.0
Vector3 shake_fov_intensity default: Vector3(0, 0, 0)
CamTarget3D target -

Methods

Return Method
String apply_vcam3D_data(vcam3D: VirtualCam3D)
void blend_to(vcam3D : VirtualCam3D, blend_data : BlendData3D)
VirtualCam3D find_vcam_by_id(id : String)
float full_blend_duration()
void init_default_blend_data()
void pause_blend()
void pause_follow_prio()
void pause_follow_target()
void prioritized_vcam()
void reposition_to_vcam(vcam : VirtualCam3D)
void resume_blend()
void resume_follow_prio()
void resume_follow_target()
void seq_blend_next()
void seq_blend_prev()
void seq_blend_to(idx: int)
void seq_pause()
void seq_resume()
void seq_stop()
void shake_offset(intensity : Vector3, duration : float, ease : Tween.EaseType, trans : Tween.TransitionType)
void shake_rotation(intensity : float, duration : float, ease : Tween.EaseType, trans : Tween.TransitionType)
void shake_fov(intensity : Vector3, duration : float, ease : Tween.EaseType, trans : Tween.TransitionType)
void start_sequence(backwards : bool = false)
void start_sequence_at(backwards : bool = false, index : int = 0)
void toggle_follow_prio()
void toggle_follow_target()
CamSequence3D get_current_sequence()
void set_current_sequence(value : CamSequence3D)
FollowMode get_follow_mode()
void set_follow_mode(value : FollowMode)
bool is_follow_prio_paused()
void set_follow_prio_paused(value : bool)
bool is_follow_target_paused()
void set_follow_target_paused(value : bool)
CamTarget3D get_target()
void set_target(value : CamTarget3D)

Signals

  • signal sequence_completed()

    Emitted when a sequence of blends, using CamSequence3D was completed.
  • signal shake_offset_ended()

    Emitted when the camera shake, using its offset, has ended.
    See CineCam3D.shake_offset
  • signal shake_offset_started()

    Emitted when the camera shake, using its offset, is started.
    See CineCam3D.shake_offset
  • signal shake_rotation_ended()

    Emitted when the camera shake, using its rotation, has ended.
    See CineCam3D.shake_rotation
  • signal shake_rotation_started()

    Emitted when the camera shake, using its rotation, has started.
    See CineCam3D.shake_rotation
  • signal shake_fov_ended()

    Emitted when the camera shake, using its fov, has ended.
    See CineCam3D.shake_fov
  • signal shake_fov_started()

    Emitted when the camera shake, using its fov, has started.
    See CineCam3D.shake_fov

Enumerations

Property Description

  • bool blend_pause
    [SET] _set_blend_paused(value)
    [GET] _is_blend_paused()

    Getter / Setter for pausing the tween that is used for camera blends.
    See CineCam3D.pause_blend.
  • bool follow_prio_pause
    [SET] set_follow_prio_paused(value)
    [GET] is_follow_prio_paused()
  • float shake_offset_duration
    [SET] _set_shake_offset_duration(value)
    [GET] _get_shake_offset_duration()

    Getter / Setter for the shake offset duration.
    Can be increased during a shake to increase its duration.
  • Vector3 shake_offset_intensity
    [SET] _set_shake_offset_intensity(value)
    [GET] _get_shake_offset_intensity()

    Getter / Setter for the shake offset intensity.
    Can be increased during a shake to increase its intensity.
  • float shake_rotation_duration
    [SET] _set_shake_rotation_duration(value)
    [GET] _get_shake_rotation_duration()

    Getter / Setter for the shake rotation duration.
    Can be increased during a shake to increase its duration.
  • float shake_rotation_intensity
    [SET] _set_shake_rotation_intensity(value)
    [GET] _get_shake_rotation_intensity()

    Getter / Setter for the shake rotation intensity.
    Can be increased during a shake to increase its intensity.
  • float shake_fov_duration
    [SET] _set_shake_fov_duration(value)
    [GET] _get_shake_fov_duration()

    Getter / Setter for the shake fov duration.
    Can be increased during a shake to increase its duration.
  • Vector3 shake_fov_intensity
    [SET] _set_shake_fov_intensity(value)
    [GET] _get_shake_fov_intensity()

    Getter / Setter for the shake fov intensity.
    Can be increased during a shake to increase its intensity.

Descriptions

  • void seq_pause()

    Pauses the current running sequence. Will not pause the blend, just the execution of the sequence.
  • void seq_resume()

    Resumes the current running sequence, regardless of the current state.