How to check for objects that fall under a huge reticle?

Godot Version

4.3

Question

I have multiple enemies in a scene, and I would like to have a weapon that has a huge reticle that shows which enemies are in the reticle at that moment. Something like this: https://www.youtube.com/watch?v=ODNZm6PkZ4I&t=11s

How to do this in Godot?

I recently learned this, but you can probably do it with ShapeCast3D — Godot Engine (stable) documentation in English

I briefly looked and there’s some tutorials on it on youtube. If you have used Raycast it should work pretty similar. You cast a shape (probably a cylinder) and set the collision masks and layers correctly and see what objects are hit by the shapecast.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.