Third Person Cover Shooter
1.6
|
Describes a value that is calculated based on a distance. More...
Public Member Functions | |
DistanceRange (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 |
Minimum interpolated value. More... | |
float | Max |
Maximum interpolated value. More... | |
float | MinDistance |
Value is set to MinValue when distance to camera is lower than this value. More... | |
float | MaxDistance |
Value is set to MaxValue when distance to camera is greater than this value. More... | |
Describes a value that is calculated based on a distance.
CoverShooter.DistanceRange.DistanceRange | ( | float | min, |
float | max, | ||
float | minDistance, | ||
float | maxDistance | ||
) |
Constructs a new distance range.
float CoverShooter.DistanceRange.Get | ( | Vector3 | position | ) |
Returns value based on the given position.
The distance is calculated between the main camera and the given position.
float CoverShooter.DistanceRange.Get | ( | float | distance | ) |
Returns value based on the given distance.
float CoverShooter.DistanceRange.Max |
Maximum interpolated value.
float CoverShooter.DistanceRange.MaxDistance |
Value is set to MaxValue when distance to camera is greater than this value.
float CoverShooter.DistanceRange.Min |
Minimum interpolated value.
float CoverShooter.DistanceRange.MinDistance |
Value is set to MinValue when distance to camera is lower than this value.