Skip to content

RayCast3D collision detection issue in simple demo scene #101022

Open
@ericsnekbytes

Description

Tested versions

Reproducible in Godot 4.3.stable.official, 77dcf97

System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated Quadro T2000 - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 Threads)

Issue description

This simple scene demonstrates using a RayCast3D on a "turret" to test for obstructions/line-of-sight to players (entire script and scene pictured below + attached) . Ray casting fails after the player's position has been modified, despite the player position and raycast target_position matching. If this is expected behavior, it will at least be nice to document and explain why this is happening, so that others can learn from it (possible related issue here)...

Image

Steps to reproduce

Run the scene, look at the console output and confirm collision detection failures in part (B).

Minimal reproduction project (MRP)

Project attached (simple 1-script demo scene started from a blank project).

raycasttest.zip

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions