Skip to content

3D Framed Camera stick to Non-physics target #683

Description

@Hemerocallix

Issue description

When follow mode is "Framed" and the dead zone isn't 0, and the target node is a non-physical node (eg. Node3D).
The camera will stick to the target node on start.
And keeps showing the errow message
E 0:00:02:496 phantom_camera_3d.gd:1068 @ _set_follow_position(): Condition "p.d == 0" is true. Returning:

While switching the node type to physic node (eg. CharacterBody3D). And it would work properly.

I don't know if I handle it properly,

Image Image

Steps to reproduce

Create a scene and add a Node3D and phantom camera nodes
Set target node as the Node3D and set dead zone to any value other than zero
Run the scene and the camera will move directly into the target rather than keep a distance

(Optional) Minimal reproduction project

PhantomCamera_Bug.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions