Collection of hit information returned from a physics query. More...
Public Member Functions | |
void | Add (Hit3D hit, FrameContext context) |
Adds a Hit3D object to the HitCollection3D. More... | |
void | Free (Native.Allocator allocator) |
Frees a persistent hit collection held by an allocator. More... | |
void | Reset () |
Resets the hit collection by setting its count to 0. More... | |
void | Sort (FPVector3 point) |
Sort all hits in the collection, in ascending order, based on the distance from the Hit3D.Point to the target point . More... | |
void | SortCastDistance () |
Sort all hits in the collection, in ascending order, based on the Hit3D.CastDistanceNormalized. More... | |
Hit3D[] | ToArray () |
Converts the collection of hits into a managed array. More... | |
Properties | |
int | Count [get] |
Gets the number of hits in the hit collection. More... | |
Hit3D * | HitsBuffer [get] |
The buffer containing all hits in the collection. More... | |
Hit3D | this[int index] [get] |
Represents a hit result from a physics query at a specific index. More... | |
Collection of hit information returned from a physics query.
|
inline |
Converts the collection of hits into a managed array.
|
inline |
Sort all hits in the collection, in ascending order, based on the distance from the Hit3D.Point to the target point .
Queries must have the QueryOptions.ComputeDetailedInfo option set in order to compute hit Points and Cast Distance. Include this flag if intending to sort the query results.
|
inline |
Sort all hits in the collection, in ascending order, based on the Hit3D.CastDistanceNormalized.
Queries must have the QueryOptions.ComputeDetailedInfo option set in order to compute hit Points and Cast Distance. Include this flag if intending to sort the query results.
|
inline |
Frees a persistent hit collection held by an allocator.
allocator | The allocator used for the hit collection. |
|
inline |
Resets the hit collection by setting its count to 0.
|
inline |
Adds a Hit3D object to the HitCollection3D.
hit | The Hit3D object to add. |
context | The FrameContext object. |
|
get |
Gets the number of hits in the hit collection.
The number of hits in the hit collection.
|
get |
Represents a hit result from a physics query at a specific index.
|
get |
The buffer containing all hits in the collection.