KS.Reactor.ksRaycastResult Struct Reference

Result of an raycast scene query. More...

Inheritance diagram for KS.Reactor.ksRaycastResult:
KS.Reactor.ksIQueryHitResult

Properties

ksIEntity Entity [get, set]
 Entity hit by the raycast. More...
 
ksICollider Collider [get, set]
 Collider hit by the raycast. More...
 
ksVector3 Point [get, set]
 summary>Normal of the surface where the raycast point is. More...
 
ksVector3 Normal [get, set]
 summary>Distance along the raycast when the intersection was detected. More...
 
float Distance [get, set]
 
bool IsValid [get]
 A raycast result is only valid if it includes an entity reference. More...
 
bool IsInitialOverlap [get]
 Is the entity/collider overlapping with the raycast origin? More...
 
- Properties inherited from KS.Reactor.ksIQueryHitResult
ksIEntity Entity [get, set]
 Entity hit by the query. More...
 
ksICollider Collider [get, set]
 Collider hit by the query. More...
 
ksVector3 Point [get, set]
 summary>Normal of the surface where the hit point is. More...
 
ksVector3 Normal [get, set]
 summary>Distance along the query when the intersection was detected. More...
 
float Distance [get, set]
 
bool IsValid [get]
 A hit result is only valid if it includes an entity reference. More...
 
bool IsInitialOverlap [get]
 Is the entity/collider overlapping with the query origin? More...
 

Detailed Description

Result of an raycast scene query.

Property Documentation

◆ Collider

ksICollider KS.Reactor.ksRaycastResult.Collider
getset

Collider hit by the raycast.

summary>Point on the surface of the entity where the ray instersected

◆ Entity

ksIEntity KS.Reactor.ksRaycastResult.Entity
getset

Entity hit by the raycast.

◆ IsInitialOverlap

bool KS.Reactor.ksRaycastResult.IsInitialOverlap
get

Is the entity/collider overlapping with the raycast origin?

◆ IsValid

bool KS.Reactor.ksRaycastResult.IsValid
get

A raycast result is only valid if it includes an entity reference.

◆ Normal

ksVector3 KS.Reactor.ksRaycastResult.Normal
getset

summary>Distance along the raycast when the intersection was detected.

◆ Point

ksVector3 KS.Reactor.ksRaycastResult.Point
getset

summary>Normal of the surface where the raycast point is.