During the game play of the Red Riding project we want the player to be able to be detected, or to distract enemies.
To do this we will need the enemies to be able to react to stimulus to control its behaviour.
In order to do this I intend to give the enemy characters a "sight" in the form of Raycasting.
Below are a couple of videos of uses of Raycasting in Unity.
Essentially raycasting is drawing a simple line in a predefined direction (can vary depending on use) and detecting its collision with other objects.
This can be used for sight, detecting the height of an object or firing weapons.
(Raycasting is used commonly in modern FPS's, mainly because it is easier to do and is cheaper for game engines to carry out.)
DS (02/03/13)
No comments:
Post a Comment