0 votes

I am working on a project that needs me to enable and disable Collision Shapes on many StaticBody2Ds, and uses a RayCast2D to detect those. However, the RayCast2D doesn't detect the enabled Collision Shapes at all. Is there anything I can do to fix this, and/or why is it doing this?

in Engine by (14 points)

1 Answer

0 votes

Do you mean that the raycast2d detects the staticbody2d nodes first, but when you disable and enable them, it doesn't?

by (134 points)

Thats exactly it.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.