Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ObstacleDetectorSplineInfo Interface Reference

Public Member Functions

bool IsNearRoadSplineXZ (vector point)
 Non-expensive approximation check if the position is near a road-like spline and its clearance.
 
void SCR_ObstacleDetectorSplineInfo (notnull IEntitySource shapeEntitySource, notnull ShapeEntity shapeEntity, notnull IEntitySource generatorSource)
 

Public Attributes

float m_fClearance
 
float m_fLakeSurfaceY
 
ref array< float > m_a2DPoints
 World coordinates.
 
ref array< vector > m_aTesselatedPoints
 World coordinates.
 
ref array< vector > m_aMinsWithClearance
 
ref array< vector > m_aMaxsWithClearance
 
vector m_vMinWithClearance
 
vector m_vMaxWithClearance
 

Protected Member Functions

void GetAndSetMinMaxWithClearance (inout notnull array< vector > mins, inout notnull array< vector > maxs, out vector min, out vector max)
 
array< vector > GetTesselatedWorldPoints (notnull ShapeEntity shapeEntity)
 

Static Protected Member Functions

static int GetPoints2D3D (notnull ShapeEntity shapeEntity, out array< float > pos2D, out array< vector > pos3D)
 Get shape's 2D and/or 3D points in relative coordinates.
 

Constructor & Destructor Documentation

◆ SCR_ObstacleDetectorSplineInfo()

void SCR_ObstacleDetectorSplineInfo.SCR_ObstacleDetectorSplineInfo ( notnull IEntitySource shapeEntitySource,
notnull ShapeEntity shapeEntity,
notnull IEntitySource generatorSource )
Parameters
[in]shapeEntitySource
[in]shapeEntity
[in]generatorSource

Member Function Documentation

◆ GetAndSetMinMaxWithClearance()

void SCR_ObstacleDetectorSplineInfo.GetAndSetMinMaxWithClearance ( inout notnull array< vector > mins,
inout notnull array< vector > maxs,
out vector min,
out vector max )
protected
Parameters
[in,out]minsneeded to obtain min, -clearance is also added to all the mins
[in,out]maxsneeded to obtain max, +clearance is also added to all the maxs
[out]minthe bottom-left corner - clearance
[out]maxthe top-right corner + clearance

◆ GetPoints2D3D()

static int SCR_ObstacleDetectorSplineInfo.GetPoints2D3D ( notnull ShapeEntity shapeEntity,
out array< float > pos2D,
out array< vector > pos3D )
staticprotected

Get shape's 2D and/or 3D points in relative coordinates.

Parameters
[in]shapeEntity
[out]pos2Dcan be null and won't be filled
[out]pos3Dcan be null and won't be filled
Returns
number of points, or -1 in case of no array to fill

◆ GetTesselatedWorldPoints()

array< vector > SCR_ObstacleDetectorSplineInfo.GetTesselatedWorldPoints ( notnull ShapeEntity shapeEntity)
protected

◆ IsNearRoadSplineXZ()

bool SCR_ObstacleDetectorSplineInfo.IsNearRoadSplineXZ ( vector point)

Non-expensive approximation check if the position is near a road-like spline and its clearance.

Returns
true if close, false if not

Member Data Documentation

◆ m_a2DPoints

ref array<float> SCR_ObstacleDetectorSplineInfo.m_a2DPoints

World coordinates.

Lakes only

◆ m_aMaxsWithClearance

ref array<vector> SCR_ObstacleDetectorSplineInfo.m_aMaxsWithClearance

◆ m_aMinsWithClearance

ref array<vector> SCR_ObstacleDetectorSplineInfo.m_aMinsWithClearance

◆ m_aTesselatedPoints

ref array<vector> SCR_ObstacleDetectorSplineInfo.m_aTesselatedPoints

World coordinates.

Roads/Rivers/Powerlines/Tracks

◆ m_fClearance

float SCR_ObstacleDetectorSplineInfo.m_fClearance

◆ m_fLakeSurfaceY

float SCR_ObstacleDetectorSplineInfo.m_fLakeSurfaceY

◆ m_vMaxWithClearance

vector SCR_ObstacleDetectorSplineInfo.m_vMaxWithClearance

◆ m_vMinWithClearance

vector SCR_ObstacleDetectorSplineInfo.m_vMinWithClearance

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