Getting stuck with 3D Raycasts inside some EditorPlugin code: I can't seem to detect a Area node with a clear CollisionShape. Is it just impossible to do raycasting inside an edited scene?

· · Mastodon Twitter Crossposter · 1 · 0 · 0

Found the solution! Apparently (& thinking back, duhhh) you need to call force_raycast_update() on the Raycast node before obtaining the collision information. There is not physics loop in the editor, so the information wouldn't ever update if it isn't for that manual call.

Show thread
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!