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... | |
|
get |
The collider that was hit by the raycast.
The collider.
|
get set |
The distance from the raycast's origin to the point of impact.
The distance.
|
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.
|
get set |
The ID of the entity that was hit. -1 if no entity was hit.
The entity identifier.
|
get set |
The normal of the surface that was hit.
The normal.
|
get set |
The point in world-space where the raycast hit a surface
The point.
|
get set |
The triangle of the collision mesh that was hit by the raycast.
The index of the triangle.
|
get set |
The uv coordinates of the point on the surface that was hit.
The uv point.