{"repo":"d-bucur/godot-vision-cone","free":true,"listed":false,"github":"https://github.com/d-bucur/godot-vision-cone","clone":"git clone https://github.com/d-bucur/godot-vision-cone.git","description":"Vision cone addon for Godot","language":"GDScript","stars":94,"topics":["addon","gdscript","godot","godot-addon","godot4","plugin","vision","line-of-sight"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"🎯 Description A plugin for Godot 4 that adds a configurable vision cone to 2D entities. It can be used for example to simulate the vision of enemies in a stealth game. It is implemented using a simple raycast in uniform directions algorithm as shown in the first picture here. I see this as being useful for prototyping and with a bit of tuning maybe even release. Asset library page New asset store page 🚅 Quickstart - Install the plugin - Check out the example scene to see the plugin in action - Instantiate the vision cone 2d template scene as a child of your node that should have a vision cone. This scene comes with some predefined configurations to get you started quickly - Configure properties in the VisionCone2D node. More details in this section - Connect body entered / body exited signals from VisionCone2D/VisionConeArea node to your main game logic - You can duplicate vision cone 2d template.tscn into your project and modify it to better suit objects in your project, or just attach the vision cone 2d.gd script to any node in your scene and configure everything manually - ??? - Profit! 💸 🔧 Configuration Script parameters are described in the code and they can also be viewed in the editor by hovering the mouse over the property Check out the example scene to see different configurations for the plugin in action. You can read the text in the explanation labels in the scene for more details on what's happening The main idea is that rays are shot into many directions arou","default_branch":null,"files":null,"tree":[],"storefront":"/r/d-bucur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/d-bucur/godot-vision-cone/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}