Skip to content

Physics interpolation make PhantomCameraNoiseEmitter2D.emit() ineffective #491

@xuc1995

Description

@xuc1995

Issue description

addon version: 0.8.2.3
godot version: 4.4-stable

PhantomCameraNoiseEmitter2D.emit() does not work at runtime. The simplest way to reproduce this issue is to run the example scene: 'res://addons/phantom_camera/examples/example_scenes/2D-4.3/2d_noise_example_scene.tscn' - pressing the Q key does not cause the camera to shake.

After debugging, I suspect the problem is caused by the actual rendering process happens before the camera_2d.offset has been set in the _process method of phantom_camera_host.gd, while it happens after camera_2d.offset has been reset to zero by phantom_camera_host.gd.__tween_follow_checker

Image

Steps to reproduce

run the example scene: 'res://addons/phantom_camera/examples/example_scenes/2D-4.3/2d_noise_example_scene.tscn' - pressing the Q key does not cause the camera to shake.

(Optional) Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    2DIssues concerning 2D scenesbugSomething isn't workingphantom cameraRelated to PhantomCamera nodes

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions