System RayWorldIntersection
From CryWiki
System.RayWorldIntersection(vec3, vec3, number, number, number, number, table)
Description
This function checks, if a ray with a certain position and a certain direction intersects with something.
Arguments
- Start position
- Direction
- Maximum number of hits
- Entity types (ent_all, ent_terrain, ent_static, ent_rigid, ent_sleeping_rigid)
- Entity with this id will be skipped
- Entity with this id will be skipped (?)
- Table to store the hit data
Returns
The number of hits
Example
|
| |
|---|---|
| |
