| 
    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=null, TraceParam traceParam=null, out vector surfaceNormal=vector.Zero) | 
| 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.
| [in] | pos | World position | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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.
| [in] | pos | World position | 
| [out] | result | Matrix to be filled with basis vectors | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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 | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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.
| [in] | pos | World position | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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 | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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 | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | 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) | 
| [out] | surfaceNormal | Returns the surface intersection normal | 
      
  | 
  static | 
Snap transformation to terrain position.
| [out] | transform | Matrix to be modified | 
| [in] | world | World to be checked (default world is used when undefined) | 
| [in] | noUnderwater | When true, sea surface will be used instead of seabed | 
| [in] | trace | When defined, use this trace to check surface intersection (useful for setting custom trace flags or ignored entities) | 
      
  | 
  staticprotected |