I’m using NC on my project, which is a 2D project, and I noticed that there is no Condition Task “Check Line Of Sight” for 2D, since it uses the LineCast function, but there is no Task to check LOS with LineCast2D.
Will you include 2D support by adding tasks using their 2D counterparts?
Thanks for the fast reply!
I already modified the task to work on 2D, and I think it would be useful to be able to pass a string as parameter, where you specify which layer is the one blocking vision. This way you don’t have to check if the items collided are the agent itself or the target (unless one of those is in the same layer as the items blocking vision), you just have to check if any item was returned.
At least this is the way I set it up, so no other non LOS-blocking triggers are detected.
There are more 2D actions that involve 2D, but I think it should be a better idea to leave the user to custom the tast as he pleases, since some tasks are really tool dependant, like navigation, since Unity navigation doesnt work out of the box on 2D games AFAIK.
Thanks for the support!
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.