CAM IS SPHERE VISIBLE
Jump to navigation
Jump to search
Number of parameters: 5 | ||
---|---|---|
Parameter # | Type | Description |
1. | int | Camera Id |
2. | float | Sphere centre X-Coordinate |
3. | float | Sphere centre Y-Coordinate |
4. | float | Sphere centre Z-Coordinate |
5. | float | Sphere radius |
Return value: | ||
Type | Description | |
int | 0: can not be seen. 1: can be seen |
The function checks if the specified camera has a clear line-of-sight towards the specified sphere.
Environment (walls, buildings, ground) blocks the line of sight. Because the function has not been fully tested it is not known if objects, peds and vehicles block the line of sight.