Container for a group of BoltPhysicsHits More...
Public Member Functions | |
void | Dispose () |
Implementing the IDisposable interface to allow "using" syntax. More... | |
BoltPhysicsHit | GetHit (int index) |
Get the hit at a specific index More... | |
Static Public Member Functions | |
static implicit | operator bool (BoltObject obj) |
Properties | |
int | count [get] |
How many hits we have in the collection More... | |
BoltPhysicsHit | this[int index] [get] |
Array indexing of the hits in this object More... | |
Container for a group of BoltPhysicsHits
Example: Using BoltNetwork.RaycastAll()
to detect hit events and processing the BoltPhysicsHits object that is returned.
|
inline |
Implementing the IDisposable interface to allow "using" syntax.
Example: Implementing the Disponse() method allows BoltPhysicsHits to be in a "using" block.
|
inline |
Get the hit at a specific index
index | Index position |
Example: Using the GetHit method to find the first object hit by a weapon firing raycast.
|
inlinestaticinherited |
|
get |
How many hits we have in the collection
Example: Using the hit count to iterate through all hits
|
get |
Array indexing of the hits in this object
index | Index position |
Example: Using the array indexing to get the first object hit by a weapon firing raycast.