Unit Vision

Описание к видео Unit Vision

Shows the unit vision control in action.

How it works :
A cone ghost control is attached to the unit's head.
All units intersecting with the cone's AABB fire events (AABB because of how Bullet Physics work)
Cast a ray towards the visible unit and then adjust the angle so that it fits in the cone
If the ray cast touches the supposedly visible unit, then it is truly visible

Комментарии

Информация по комментариям в разработке