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

Static Public Member Functions

static void GetBoundsPoints (vector min, vector max, out vector points[19])
 
static Shape CreateBounds (vector min, vector max, int color, ShapeFlags flags)
 
static Resource CreateAreaMesh (array< vector > positions, float height, string material, bool strechMaterial)
 Generate area mesh.
 
static void DrawCircle (vector transform[4], float radius, int colorOutline, int colorPlane, ShapeFlags shapeFlags)
 Draw debug circle with outline using specified colors and shape flags Circle stems from origin of the transform and rotating around the up vector Circle has fixed section count of 36.
 

Member Function Documentation

◆ CreateAreaMesh()

static Resource SCR_Shape.CreateAreaMesh ( array< vector > positions,
float height,
string material,
bool strechMaterial )
static

Generate area mesh.

Parameters
positionsBorder segment positions
heightBorder height
materialMaterial path
strechMaterialTrue to stretch the material along the area border instead of mapping it on each segment.
Returns
Mesh to be mapped on an entity

◆ CreateBounds()

static Shape SCR_Shape.CreateBounds ( vector min,
vector max,
int color,
ShapeFlags flags )
static

◆ DrawCircle()

static void SCR_Shape.DrawCircle ( vector transform[4],
float radius,
int colorOutline,
int colorPlane,
ShapeFlags shapeFlags )
static

Draw debug circle with outline using specified colors and shape flags Circle stems from origin of the transform and rotating around the up vector Circle has fixed section count of 36.

Parameters
transformOrientation matrix of the circle - side, normal, direction, center position
radiusRadius of the circles [m]
colorOutlinecolor of the outline
colorPlanecolor of the circle plane
shapeFlagsflags for rendering the basic shape

◆ GetBoundsPoints()

static void SCR_Shape.GetBoundsPoints ( vector min,
vector max,
out vector points[19] )
static

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