Arma Reforger Script API
|
Static Public Member Functions | |
static float | GetTerrainY (vector pos, BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Get terrain height at given position. | |
static float | GetHeightAboveTerrain (vector pos, BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Get height above terrain of given position. | |
static vector | GetTerrainNormal (inout vector pos, BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Get terrain normal vector on given position. | |
static bool | GetTerrainBasis (vector pos, out vector result[4], BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Get terrain basis vectors on given position. | |
static void | SnapToGeometry (out vector newPosition, vector currentPosition, array< IEntity > excludedEntities, BaseWorld world, TraceParam traceParam=null) |
Snap transformation to nearest geometry beneath provided position. | |
static bool | SnapToTerrain (out vector transform[4], BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Snap transformation to terrain position. | |
static bool | OrientToTerrain (out vector transform[4], BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Orient transformation to terrain normal. | |
static bool | SnapAndOrientToTerrain (out vector transform[4], BaseWorld world=null, bool noUnderwater=false, TraceParam trace=null) |
Snap transformation to terrain position and orient it to terrain normal. | |
Static Protected Attributes | |
static const float | MAX_TRACE_LENGTH = 100 |
|
static |
Get height above terrain of given position.
[out] | pos | World position |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Get terrain basis vectors on given position.
pos | World position | |
[out] | result | Matrix to be filled with basis vectors |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Get terrain normal vector on given position.
[in,out] | pos | World position, its vertical axis will be modified to be the surface height |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Get terrain height at given position.
[out] | pos | World position |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Orient transformation to terrain normal.
[out] | transform | Matrix to be modified |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Snap transformation to terrain position and orient it to terrain normal.
[out] | transform | Matrix to be modified |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Snap transformation to nearest geometry beneath provided position.
[out] | newPosition | that is snapped to the geometry |
[in] | currentPosition | that will be used as a starting point for snapping |
[in] | excludedEntities | array that will not be taken into account when snapping to the geometry |
[in] | world | World to be checked (default world is used when undefined) |
[in] | traceParam | When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
static |
Snap transformation to terrain position.
[out] | transform | Matrix to be modified |
world | World to be checked (default world is used when undefined) | |
noUnderwater | When true, sea surface will be used instead of seabed \trace When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) |
|
staticprotected |