Third Person Cover Shooter
1.6
|
Builds and maintains a list of covers near a position. More...
Public Member Functions | |
void | ResetDistance (Vector3 observer) |
Calculates distances of every cover to the given position. More... | |
void | Reset (Vector3 observer, float maxDistance, bool detailedPositions=true) |
Finds covers near the position in a given radius. More... | |
Public Attributes | |
List< CoverItem > | Items = new List<CoverItem>() |
Builds and maintains a list of covers near a position.
void CoverShooter.CoverCache.Reset | ( | Vector3 | observer, |
float | maxDistance, | ||
bool | detailedPositions = true |
||
) |
Finds covers near the position in a given radius.
Calculates distances and sorts them.
void CoverShooter.CoverCache.ResetDistance | ( | Vector3 | observer | ) |
Calculates distances of every cover to the given position.
Sorts covers by distance.