Enfusion Script API
|
Instance of created debug visualizer. More...
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. | |
Instance of created debug visualizer.
proto void Shape.~Shape | ( | ) |
don't call destructor directly!
|
static |
|
static |
Creates arrow from lines.
from | Starting position of arrow |
to | Ending position of arrow |
size | Size of the arrow head (in meters) |
color | Color of arrow |
flags | Flags, see ShapeFlags |
|
static |
Create cylinder aligned with Z axis.
color | Color encoded in 0xA8R8G8B8 form. |
flags | Flags, see ShapeFlags |
origin | Position of cylinder |
radius | Radius of cylinder |
length | Length of cylinder |
|
static |
Create list of lines.
color | Color encoded in 0xA8R8G8B8 form. |
flags | Flags, see ShapeFlags |
p | Array of points |
num | Number of points. Must be multiply of 2 |
|
static |
Create sphere.
color | Color encoded in 0xA8R8G8B8 form. |
flags | Flags, see ShapeFlags |
origin | Position of shape |
radius | Radius of sphere |
|
static |
Create triangle-list mesh.
color | Color encoded in 0xA8R8G8B8 form. |
flags | Flags, see ShapeFlags |
p | Array of vertexes |
num | Number of triangles |
proto external void Shape.GetMatrix | ( | out vector | mat[4] | ) |
proto external void Shape.SetColor | ( | int | color | ) |
proto external void Shape.SetFlags | ( | ShapeFlags | flags | ) |
proto external void Shape.SetMatrix | ( | vector | mat[4] | ) |