Tasharen Entertainment Forum

Support => Other Packages => Topic started by: bzwill on April 24, 2016, 04:39:06 AM

Title: Tasharen FOW
Post by: bzwill 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.

:)
Title: Re: Tasharen FOW
Post by: ArenMook 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.