Parameters for raycast queries. More...
Public Member Functions | |
ksRaycastParams () | |
Constructor More... | |
ksRaycastParams (ksVector3 origin, ksVector3 direction, float distance, ksIQueryFilter filter=null, ksIEntity excludeEntity=null, ksQueryFlags flags=ksQueryFlags.DEFAULT) | |
Constructor More... | |
ksRaycastParams (ksVector3 origin, ksVector3 end, ksIQueryFilter filter=null, ksIEntity excludeEntity=null, ksQueryFlags flags=ksQueryFlags.DEFAULT) | |
Constructor More... | |
override bool | Validate (bool log=true) |
Checks if the parameters are valid. More... | |
void | CopyTo (ksRaycastParams target) |
Copies the values from this object to the target . More... | |
![]() | |
void | CopyTo (ksBaseQueryParams target) |
Copies the values from this object to the target . More... | |
Public Attributes | |
float | Distance |
Raycast distance More... | |
![]() | |
ksIQueryFilter | Filter |
Query filter for filtering results. If null, all hits are touching. More... | |
ksIEntity | ExcludeEntity |
This entity is excluded from results. More... | |
ksQueryFlags | Flags = ksQueryFlags.DEFAULT |
Query flags for filtering results. More... | |
Properties | |
override ksVector3 | Origin [get, set] |
Raycast origin More... | |
ksVector3 | Direction [get, set] |
Raycast direction More... | |
ksVector3 | End [get, set] |
The end-point of the raycast. More... | |
override ksQueryTypes | QueryType [get] |
Query type More... | |
![]() | |
abstract ksVector3 | Origin [get, set] |
The starting position of the physics query. More... | |
abstract ksQueryTypes | QueryType [get] |
Query type More... | |
virtual ksQueryObjectTypes | ObjectType [get] |
The object type used in the query. More... | |
Parameters for raycast queries.
KS.Reactor.ksRaycastParams.ksRaycastParams | ( | ) |
Constructor
KS.Reactor.ksRaycastParams.ksRaycastParams | ( | ksVector3 | origin, |
ksVector3 | direction, | ||
float | distance, | ||
ksIQueryFilter | filter = null , |
||
ksIEntity | excludeEntity = null , |
||
ksQueryFlags | flags = ksQueryFlags.DEFAULT |
||
) |
Constructor
origin | Raycast origin |
direction | Raycast direction |
distance | Raycast distance |
filter | Query filter for filtering results. |
excludeEntity | Exclude this entity from results. |
flags | Query flags for filtering results. |
KS.Reactor.ksRaycastParams.ksRaycastParams | ( | ksVector3 | origin, |
ksVector3 | end, | ||
ksIQueryFilter | filter = null , |
||
ksIEntity | excludeEntity = null , |
||
ksQueryFlags | flags = ksQueryFlags.DEFAULT |
||
) |
Constructor
origin | Raycast origin |
end | Raycast end point |
filter | Query filter for filtering results. |
excludeEntity | Exclude this entity from results. |
flags | Query flags for filtering results. |
void KS.Reactor.ksRaycastParams.CopyTo | ( | ksRaycastParams | target | ) |
Copies the values from this object to the target .
target | Target to copy to. |
|
virtual |
Checks if the parameters are valid.
The parameters are invalid if ksBaseQueryParams.Filter is a ksSimulationFilter.
log | If true, logs warnings describing what is invalid if anything is invalid. |
Reimplemented from KS.Reactor.ksBaseQueryParams.
float KS.Reactor.ksRaycastParams.Distance |
Raycast distance
|
getset |
Raycast direction
|
getset |
The end-point of the raycast.
|
getset |
Raycast origin
|
get |
Query type