Loading...
Searching...
No Matches
SCR_ProjectileWindTable Interface Reference

Public Member Functions

array< float > GetDataByAngleDeg (float angle, float windSpeed, float initSpeedCoef=1)
 Fetches data coresponding to the given angle.
 
array< float > GetDataByAngle (float angle, float windSpeed=10, float initSpeedCoef=1)
 Fetches data coresponding to the given angle.
 
array< float > GetDataByDisance (float distance, bool directFire, float windSpeed, float initSpeedCoef=1)
 Fetches data coresponding to the given distance.
 
void SCR_ProjectileWindTable (array< ref SCR_ProjectileWindData > data)
 

Static Public Member Functions

static SCR_ProjectileWindTable GetProjectileWindageData (notnull IEntity projectile)
 
static SCR_ProjectileWindTable GetProjectileWindageData (ResourceName projectileResource)
 
static SCR_ProjectileWindTable GetProjectileWindageData (notnull IEntitySource projectileEntitySrc)
 

Protected Attributes

ref array< ref SCR_ProjectileWindDatam_aData
 

Constructor & Destructor Documentation

◆ SCR_ProjectileWindTable()

void SCR_ProjectileWindTable.SCR_ProjectileWindTable ( array< ref SCR_ProjectileWindData > data)
Parameters
[in]data

Member Function Documentation

◆ GetDataByAngle()

array< float > SCR_ProjectileWindTable.GetDataByAngle ( float angle,
float windSpeed = 10,
float initSpeedCoef = 1 )

Fetches data coresponding to the given angle.

Parameters
[in]angle
[in]windSpeed
[in]initSpeedCoef
Returns
an array or null [0] angle in radians [1] distance in meters [2] peak altitude [3] azimuth correction in milliradians for the crosswind [4] distance correction in meters for the parallel wind [5] impact angle

◆ GetDataByAngleDeg()

array< float > SCR_ProjectileWindTable.GetDataByAngleDeg ( float angle,
float windSpeed,
float initSpeedCoef = 1 )

Fetches data coresponding to the given angle.

Parameters
[in]angle
[in]windSpeed
[in]initSpeedCoef
Returns
an array with data coresponding to the given angle, or null [0] angle in radians [1] distance in meters [2] peak altitude [3] azimuth correction in milliradians for the crosswind [4] distance correction in meters for the parallel wind [5] impact angle

◆ GetDataByDisance()

array< float > SCR_ProjectileWindTable.GetDataByDisance ( float distance,
bool directFire,
float windSpeed,
float initSpeedCoef = 1 )

Fetches data coresponding to the given distance.

Parameters
[in]distance
[in]directFire
[in]windSpeed
[in]initSpeedCoef
Returns
an array or null [0] angle in radians [1] distance in meters [2] peak altitude [3] azimuth correction in milliradians for the crosswind [4] distance correction in meters for the parallel wind [5] impact angle

◆ GetProjectileWindageData() [1/3]

static SCR_ProjectileWindTable SCR_ProjectileWindTable.GetProjectileWindageData ( notnull IEntity projectile)
static
Parameters
[in]projectile
Returns

◆ GetProjectileWindageData() [2/3]

static SCR_ProjectileWindTable SCR_ProjectileWindTable.GetProjectileWindageData ( notnull IEntitySource projectileEntitySrc)
static
Parameters
[in]projectileEntitySrc
Returns

◆ GetProjectileWindageData() [3/3]

static SCR_ProjectileWindTable SCR_ProjectileWindTable.GetProjectileWindageData ( ResourceName projectileResource)
static
Parameters
[in]projectileResource
Returns

Member Data Documentation

◆ m_aData

ref array<ref SCR_ProjectileWindData> SCR_ProjectileWindTable.m_aData
protected

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