Third Person Cover Shooter  1.6
CoverShooter.DistanceRange Struct Reference

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

Detailed Description

Describes a value that is calculated based on a distance.

Constructor & Destructor Documentation

◆ DistanceRange()

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

Constructs a new distance range.

Member Function Documentation

◆ Get() [1/2]

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.

◆ Get() [2/2]

float CoverShooter.DistanceRange.Get ( float  distance)

Returns value based on the given distance.

Member Data Documentation

◆ Max

float CoverShooter.DistanceRange.Max

Maximum interpolated value.

◆ MaxDistance

float CoverShooter.DistanceRange.MaxDistance

Value is set to MaxValue when distance to camera is greater than this value.

◆ Min

float CoverShooter.DistanceRange.Min

Minimum interpolated value.

◆ MinDistance

float CoverShooter.DistanceRange.MinDistance

Value is set to MinValue when distance to camera is lower than this value.


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