All my stuff that has no price is free to use /modify/share without any payment- I have added my PayPal information to my scripts header if somebody feels they want to support my work- but its all optional.
I noticed the CopperCube method you (any myself) tried to determine if the player is hidden behind an object doesn't work very reliably as the collision line sent out from the alien to the player keeps going and wont stop at the player and so will typically find a collision somewhere further away and thus think the player is hidden when its not. Instead I had to work out the distance that same collision check is from the alien and also the distance from the alien to the player. If the player is further away than the collision found check then the player must be hidden behind something.....
Thanks Sven - I used your same idea to calculate change in rotation angle to see if within view angle detection plus your idea to check collision that when null means can be viewed by the AI...very nice work..
Comments
Log in with itch.io to leave a comment.
How do I make a payment to you ? - there is no button for this.....
All my stuff that has no price is free to use /modify/share without any payment- I have added my PayPal information to my scripts header if somebody feels they want to support my work- but its all optional.
Ok cool, thanks Sven.
I noticed the CopperCube method you (any myself) tried to determine if the player is hidden behind an object doesn't work very reliably as the collision line sent out from the alien to the player keeps going and wont stop at the player and so will typically find a collision somewhere further away and thus think the player is hidden when its not. Instead I had to work out the distance that same collision check is from the alien and also the distance from the alien to the player. If the player is further away than the collision found check then the player must be hidden behind something.....
cheers.
Actually I think I stuffed up not using 'PositionAbs' on the collision check so reverted back and seem ok for now...my mistake.
Thanks Sven - I used your same idea to calculate change in rotation angle to see if within view angle detection plus your idea to check collision that when null means can be viewed by the AI...very nice work..
Thanks, I am glad that my work can give ideas to you.