Third Person Cover Shooter  1.6
CoverShooter.AIApproximationSettings Struct Reference

Describes possible error of the AI guesses. More...

Public Member Functions

 AIApproximationSettings (float min, float max, float minDistance, float maxDistance)
 Constructs a new distance range. More...
 
float Get (Vector3 position)
 Returns value based on the given position. More...
 
float Get (float distance)
 Returns value based on the given distance. More...
 

Public Attributes

float Min
 Minimal possible error the AI makes when approximating the position of an enemy. More...
 
float Max
 Maximum possible error the AI makes when approximating the position of an enemy. More...
 
float MinDistance
 Distance at which the AI is using Min value for guessing. More...
 
float MaxDistance
 Distance at which the AI is using Max value for guessing. More...
 

Detailed Description

Describes possible error of the AI guesses.

Constructor & Destructor Documentation

◆ AIApproximationSettings()

CoverShooter.AIApproximationSettings.AIApproximationSettings ( float  min,
float  max,
float  minDistance,
float  maxDistance 
)

Constructs a new distance range.

Member Function Documentation

◆ Get() [1/2]

float CoverShooter.AIApproximationSettings.Get ( Vector3  position)

Returns value based on the given position.

The distance is calculated between the main camera and the given position.

◆ Get() [2/2]

float CoverShooter.AIApproximationSettings.Get ( float  distance)

Returns value based on the given distance.

Member Data Documentation

◆ Max

float CoverShooter.AIApproximationSettings.Max

Maximum possible error the AI makes when approximating the position of an enemy.

Error is measured in meters around the target. Smaller values mean the AI is better at guessing the position.

◆ MaxDistance

float CoverShooter.AIApproximationSettings.MaxDistance

Distance at which the AI is using Max value for guessing.

If a target is at a greater distance the value is interpolated between Min and Max.

◆ Min

float CoverShooter.AIApproximationSettings.Min

Minimal possible error the AI makes when approximating the position of an enemy.

Error is measured in meters around the target. Smaller values mean the AI is better at guessing the position.

◆ MinDistance

float CoverShooter.AIApproximationSettings.MinDistance

Distance at which the AI is using Min value for guessing.

If a target is at a greater distance the value is interpolated between Min and Max.


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