Author Topic: Tasharen FOW  (Read 4421 times)

bzwill

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Tasharen FOW
« on: April 24, 2016, 04:39:06 AM »
Hey,

Hope you are well,

I would really love some basic guidance or help extending your FOW system.
I think it should be fairly easy, but I am useless at maths, and having difficulty working out where to put things.

All I want to do is be able to set a view arc for an updating FOW revealer, such that it represents a person looking in a particular direction.
I realise it will be pretty rough, thats not a problem - is there any chance you can help? Would hugely appreciate some guidance.

:)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tasharen FOW
« Reply #1 on: April 25, 2016, 01:47:47 PM »
Adding a custom delegate to the visibility check is pretty simple and I can send you a modified version that does this. It will be up to you to add a view arc though as FOW revealers don't have a "forward" vector to use. If you do add one, then it will be as simple as an angle check:
  1. bool isVisible = Vector3.Angle(revealer.forward, localVertex.normalize) < someAngle;
Send an email to support [at] tasharen.com with your OR# and I can send you the modified version that has the delegate I mentioned.