Wrapper class for a ray cast output. More...
Public Types | |
| enum | HitType { HitType.Unknown, HitType.Terrain, HitType.Entity, HitType.Static } |
Public Member Functions | |
| RaycastHit (ray_hit ray, int hits) | |
| bool | HasHitEntity (Entity entity) |
| Returns True if the entity passed in was hit. More... | |
Properties | |
| ray_hit | NativeHandle [get] |
| int | Hits [get] |
| bool | Intersected [get] |
| Vector3 | Point [get] |
| Vector3 | Normal [get] |
| float | Distance [get] |
| IEntity | HitNativeEntity [get] |
| The native CRYENGINE entity that was hit. Returns null if nothing was hit, or the hit wasn't an Entity. More... | |
| Entity | HitBaseEntity [get] |
| The Entity that was hit. Returns null if nothing was hit, or the hit wasn't an Entity. More... | |
| HitType | Type [get] |
| The type of surface that was hit, if any. Returns 'Unknown' if nothing was hit. More... | |
| IPhysicalEntity | Collider [get] |
| The native entity's physical entity, if something was hit. More... | |
Wrapper class for a ray cast output.
|
strong |
|
inline |
|
inline |
Returns True if the entity passed in was hit.
true, if entity was hit, false otherwise.| entity | Entity. |
|
get |
The native entity's physical entity, if something was hit.
|
get |
|
get |
|
get |
The native CRYENGINE entity that was hit. Returns null if nothing was hit, or the hit wasn't an Entity.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
The type of surface that was hit, if any. Returns 'Unknown' if nothing was hit.