Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Shape Interface Reference

Instance of created debug visualizer. More...

Inheritance diagram for Shape:
[legend]

Public Member Functions

proto void ~Shape ()
 don't call destructor directly!
 
proto external void SetMatrix (vector mat[4])
 
proto external void GetMatrix (out vector mat[4])
 
proto external void SetColor (int color)
 
proto external void SetFlags (ShapeFlags flags)
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Static Public Member Functions

static proto ref Shape Create (ShapeType type, int color, ShapeFlags flags, vector p1, vector p2)
 
static proto ref Shape CreateLines (int color, ShapeFlags flags, vector p[], int num)
 Create list of lines.
 
static proto ref Shape CreateTris (int color, ShapeFlags flags, vector p[], int num)
 Create triangle-list mesh.
 
static proto ref Shape CreateSphere (int color, ShapeFlags flags, vector origin, float radius)
 Create sphere.
 
static proto ref Shape CreateCylinder (int color, ShapeFlags flags, vector origin, float radius, float length)
 Create cylinder aligned with Z axis.
 
static proto ref Shape CreateArrow (vector from, vector to, float size, int color, ShapeFlags flags)
 Creates arrow from lines.
 

Detailed Description

Instance of created debug visualizer.

Constructor & Destructor Documentation

◆ ~Shape()

proto void Shape.~Shape ( )

don't call destructor directly!

Member Function Documentation

◆ Create()

static proto ref Shape Shape.Create ( ShapeType  type,
int  color,
ShapeFlags  flags,
vector  p1,
vector  p2 
)
static

◆ CreateArrow()

static proto ref Shape Shape.CreateArrow ( vector  from,
vector  to,
float  size,
int  color,
ShapeFlags  flags 
)
static

Creates arrow from lines.

Parameters
fromStarting position of arrow
toEnding position of arrow
sizeSize of the arrow head (in meters)
colorColor of arrow
flagsFlags, see ShapeFlags

◆ CreateCylinder()

static proto ref Shape Shape.CreateCylinder ( int  color,
ShapeFlags  flags,
vector  origin,
float  radius,
float  length 
)
static

Create cylinder aligned with Z axis.

Parameters
colorColor encoded in 0xA8R8G8B8 form.
flagsFlags, see ShapeFlags
originPosition of cylinder
radiusRadius of cylinder
lengthLength of cylinder

◆ CreateLines()

static proto ref Shape Shape.CreateLines ( int  color,
ShapeFlags  flags,
vector  p[],
int  num 
)
static

Create list of lines.

Parameters
colorColor encoded in 0xA8R8G8B8 form.
flagsFlags, see ShapeFlags
pArray of points
numNumber of points. Must be multiply of 2

◆ CreateSphere()

static proto ref Shape Shape.CreateSphere ( int  color,
ShapeFlags  flags,
vector  origin,
float  radius 
)
static

Create sphere.

Parameters
colorColor encoded in 0xA8R8G8B8 form.
flagsFlags, see ShapeFlags
originPosition of shape
radiusRadius of sphere

◆ CreateTris()

static proto ref Shape Shape.CreateTris ( int  color,
ShapeFlags  flags,
vector  p[],
int  num 
)
static

Create triangle-list mesh.

Parameters
colorColor encoded in 0xA8R8G8B8 form.
flagsFlags, see ShapeFlags
pArray of vertexes
numNumber of triangles

◆ GetMatrix()

proto external void Shape.GetMatrix ( out vector  mat[4])

◆ SetColor()

proto external void Shape.SetColor ( int  color)

◆ SetFlags()

proto external void Shape.SetFlags ( ShapeFlags  flags)

◆ SetMatrix()

proto external void Shape.SetMatrix ( vector  mat[4])

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