0 votes

I need to make few raycasts to obstacle boundaries to detect which zones can be observed by player and which not. It is easy to do with CircleShape2D - just take a radius. But what is about the other shapes? I can get extents of RectangleShape2D for i.e. but how to define left and right boundaries of zone that it hides. I suggest, I need to apply some rotations but what to do next? What is about other shapes?

in Engine by (274 points)

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.