For this week I continued developing the sight for the AI. I started by looking at what I needed to add for the sight to be completed. The main thing that needed implementing was that the AI should become alert if the player is suspicious for an extended amount of time. It should also stay alert for a short period of time after the player leaves the viewcones. This is to simulate the AI remembering the player so continues to look for him even though he can't be seen.
One problem that I have had while developing this was trying to move the raycast so that it shoots from the AIs eye level instead of from his feet (As it currently does). I have tried adding transform.up and Vector3.up to the enemies position vector but instead of working how it does at feet level I get an error when the player is inside of the viewcone. I have tried several things to see if I could find why this was happening however I am still unsure why this is happening. I will continue to look into this next week and if I can't figure it out I will arrange a meeting with Chris to help me fix this issue.
After this week I have finished implementing the AIs sight however for my project milestones I had assigned myself an additional week to complete this. I will be bringing all of my milestones forward by one week because of this. If I continue to be ahead of my previous milestones after implementing the AIs hearing I will look at adding additional features to implement in the spare weeks that I will have.
No comments:
Post a Comment