2D support

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8988
    karmelov
    Participant

    Hello,

    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?

    Regards,

    #8990
    Gavalakis
    Keymaster

    Hello,

    Indeed, I’ve missed the Check Line of Sight 2D version. Here is the task 🙂

    CheckLOS2D.cs

    I will also double check the 2D versions and make sure to have them there. Let me know if you have anything particular in mind and I will add it.

    Cheers!

    Join us on Discord: https://discord.gg/97q2Rjh

    #8989
    karmelov
    Participant

    Hello,

    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!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.