CryEngine.RaycastHit

CryEngine.RaycastHit

Properties

Vector3 Point [get, set]
The point in world-space where the raycast hit a surface More...
Vector3 Normal [get, set]
The normal of the surface that was hit. More...
EntityId EntityId [get, set]
The ID of the entity that was hit. -1 if no entity was hit. More...
Vector2 UvPoint [get, set]
The uv coordinates of the point on the surface that was hit. More...
float Distance [get, set]
The distance from the raycast's origin to the point of impact. More...
int TriangleIndex [get, set]
The triangle of the collision mesh that was hit by the raycast. More...
PhysicsEntity Collider [get]
The collider that was hit by the raycast. More...
Entity Entity [get]
Returns the entity that was hit. Returns null if no entity was hit. If you only need to compare this to another Entity it will be faster to compare the EntityId's instead. More...

Property Documentation

◆ Collider

PhysicsEntity CryEngine.RaycastHit.Collider
get

The collider that was hit by the raycast.

The collider.

◆ Distance

float CryEngine.RaycastHit.Distance
get
set

The distance from the raycast's origin to the point of impact.

The distance.

◆ Entity

Entity CryEngine.RaycastHit.Entity
get

Returns the entity that was hit. Returns null if no entity was hit. If you only need to compare this to another Entity it will be faster to compare the EntityId's instead.

The entity.

◆ EntityId

EntityId CryEngine.RaycastHit.EntityId
get
set

The ID of the entity that was hit. -1 if no entity was hit.

The entity identifier.

◆ Normal

Vector3 CryEngine.RaycastHit.Normal
get
set

The normal of the surface that was hit.

The normal.

◆ Point

Vector3 CryEngine.RaycastHit.Point
get
set

The point in world-space where the raycast hit a surface

The point.

◆ TriangleIndex

int CryEngine.RaycastHit.TriangleIndex
get
set

The triangle of the collision mesh that was hit by the raycast.

The index of the triangle.

◆ UvPoint

Vector2 CryEngine.RaycastHit.UvPoint
get
set

The uv coordinates of the point on the surface that was hit.

The uv point.