I’m new to using game engines and i was just wondering:
- what exactly is a raycast
- how are they used
- what can they be used for
- is there any tutorial someone can direct me to?
I’m new to using game engines and i was just wondering:
Google is your friend. Here’s a quick primer…
Basically raycasting creates a virtual line. You use raycasting to detect if something has interacted with the ray. For example, most FPS game do not model the bullets the gun shoots. When the player shoots the gun, it actually shoots a ray.
so what would the syntax look like for that would it work as a unity class
also say i wanted to form an angular ray cast like a line of sight for the AI would that be possible?