Files
TrinityCore/src
James Huston 6fbead29bf feat(mcp): LIDAR-style world scan - I can SEE your surroundings!
New MCP tool: world_scan
- Casts rays in 360 degrees using VMAP collision data
- Detects walls, obstacles, room boundaries
- Detects all creatures in range with relative positions
- Generates ASCII art visualization

How it works:
1. Binary search ray casting using isInLineOfSight()
2. VMAP provides wall/building geometry
3. Nearby creatures enumerated with GetCreatureListInGrid()
4. ASCII map shows @ (you), # (walls), letters (creatures)

Example output:
+---------------------+
|   #######           |
|   # S       #       |
|   #    @>   #       |
|   #  D      #       |
|   ###########       |
+---------------------+

No player action needed - AI calls world_scan directly!
This gives me spatial awareness of your environment!
2025-11-30 20:26:18 -05:00
..