1.2: Position offsets


Fixing another thing I ran into with Turscar Isle. Line-of-sight now uses an “eye target position” instead of a target’s actual position, accounting for offsets in the player’s collider location. This image should explain the issue: it resulted in the bots being effectively blind to the player, and defeating the entire point.

The player collider is moved upwards by half the player’s height. This can result in the line-of-sight ray hitting the ground in front of the player, not the player themselves

Files

User Manual.pdf 142 kB
80 days ago
Asset Zip Folder 18 kB
80 days ago

Get Godot Light-Sensitive Line-Of-Sight

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.