Third Person Cover Shooter  1.6
CoverShooter.CoverSearch Class Reference

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...
 

Detailed Description

Manages a cache of covers used for search.

Member Function Documentation

◆ Clear()

void CoverShooter.CoverSearch.Clear ( )

Clears the cover list.

◆ FindClimbCoverInDirection()

Cover CoverShooter.CoverSearch.FindClimbCoverInDirection ( Vector3  direction)

Find a cover in the given direction to climb on.

◆ FindClosest()

Cover CoverShooter.CoverSearch.FindClosest ( )

Find a cover closest to the character.

◆ FindClosestCrouchPosition()

bool CoverShooter.CoverSearch.FindClosestCrouchPosition ( ref Vector3  position)

Find a cover closest to the character.

◆ GetCover()

static Cover CoverShooter.CoverSearch.GetCover ( GameObject  gameObject)
static

Optimised way to get a cover component.

◆ IsCloserThan()

bool CoverShooter.CoverSearch.IsCloserThan ( Cover  first,
Cover  second,
float  threshold 
)

◆ Update()

void CoverShooter.CoverSearch.Update ( CoverState  current,
Vector3  position,
Vector3  head,
float  takeRadius,
float  crouchRadius,
float  climbRadius,
float  capsuleRadius,
CoverSettings  settings 
)

Updates cover search.


The documentation for this class was generated from the following file: