News Forums RAIN General Discussion and Troubleshooting How to detect line of sight to Vector3 point?

This topic contains 1 reply, has 1 voice, and was last updated by  kasperfm 4 days, 11 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39572

    kasperfm
    Participant

    I made a custom action that finds a random point on Unity’s NavMesh within a range..
    But how can I detect the line of sight to that point, using RAIN? :) I already have the Vector3 point as a RAIN variable.

    #39576

    kasperfm
    Participant

    I now tried to make an Aspect with the position of my Vector3, and attach it to my AI character… I don’t know if this is the right way to do this, but I’m still having problems with knowing if the Vector3 point is in visible range / line of sight.
    Maybe I should make a custom sensor, but don’t know how to do this correctly.

    I hope someone can help me out, or point me in the right direction :)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.