|
Third Person Cover Shooter
1.6
|
Manages a cache of covers used for search. More...
Public Member Functions | |
| void | Clear () |
| Clears the cover list. More... | |
| void | Update (CoverState current, Vector3 position, Vector3 head, float takeRadius, float crouchRadius, float climbRadius, float capsuleRadius, CoverSettings settings) |
| Updates cover search. More... | |
| Cover | FindClosest () |
| Find a cover closest to the character. More... | |
| bool | IsCloserThan (Cover first, Cover second, float threshold) |
| bool | FindClosestCrouchPosition (ref Vector3 position) |
| Find a cover closest to the character. More... | |
| Cover | FindClimbCoverInDirection (Vector3 direction) |
| Find a cover in the given direction to climb on. More... | |
Static Public Member Functions | |
| static Cover | GetCover (GameObject gameObject) |
| Optimised way to get a cover component. More... | |
Manages a cache of covers used for search.
| void CoverShooter.CoverSearch.Clear | ( | ) |
Clears the cover list.
| Cover CoverShooter.CoverSearch.FindClimbCoverInDirection | ( | Vector3 | direction | ) |
Find a cover in the given direction to climb on.
| Cover CoverShooter.CoverSearch.FindClosest | ( | ) |
Find a cover closest to the character.
| bool CoverShooter.CoverSearch.FindClosestCrouchPosition | ( | ref Vector3 | position | ) |
Find a cover closest to the character.
|
static |
Optimised way to get a cover component.
| void CoverShooter.CoverSearch.Update | ( | CoverState | current, |
| Vector3 | position, | ||
| Vector3 | head, | ||
| float | takeRadius, | ||
| float | crouchRadius, | ||
| float | climbRadius, | ||
| float | capsuleRadius, | ||
| CoverSettings | settings | ||
| ) |
Updates cover search.