Third Person Cover Shooter
1.6
|
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... | |
Describes possible error of the AI guesses.
CoverShooter.AIApproximationSettings.AIApproximationSettings | ( | float | min, |
float | max, | ||
float | minDistance, | ||
float | maxDistance | ||
) |
Constructs a new distance range.
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.
float CoverShooter.AIApproximationSettings.Get | ( | float | distance | ) |
Returns value based on the given distance.
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.
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.
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.
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.