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?


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.

· · Mastodon Twitter Crossposter · 0 · 0 · 0
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!