Function GraphCollision.CheckHeightAll

CheckHeightAll (Vector3 position, out int numHits)

Returns all hits when checking height for position.

Public
RaycastHit[] CheckHeightAll (

Vector3

position

out int

numHits

)

Returns all hits when checking height for position.

Warning

Does not work well with thick raycast, will only return an object a single time

The returned array is ephermal. It will be invalidated when this method is called again. If you need persistent results you should copy it.

The returned array may be larger than the actual number of hits, the numHits out parameter indicates how many hits there actually were.