tisdag 6 maj 2014

18

Today my work has contained creating a "stop" function to make the player's movement stop at the next queued tile.
After that, I worked on making the vision cone for the NPCs. No, not to make them detect the player, but to make the vision cone visible to the player.
I started off trying to make the vision cone with Gizmos (a type of visual debugging system in Unity) but after a hour I realized that it wasn't especially well suited for our needs, so I re-made the system to use a temporary plane that is printed out, and then deleted once the cone has moved on.
(above is the class for rendering and updating the vision cones)

Inga kommentarer:

Skicka en kommentar