class Vertex (client-side)
Available since version: 0.3.8.1
This class represents a 3d mesh vertex. The object is owned by the mesh or another engine container.
Properties
Vec3& position
Represents the vertex position.
int transformedIndex (read-only)
Represents the internal transformed vertex index.
int myIndex (read-only)
Represents the vertex index assigned by the engine.
VertexTransform&|null transform (read-only)
Represents the vertex transformation (if exists).
VertexTransform& getTransform
This method will either get the existing vertex transform object, or create new one.
`` resetTransform
This method will reset the existing vertex transform and set the transformIndex to 0.
Methods
draw
Draws the vertex as a debug cross using the engine line cache.
void draw(Color color, bool useZBuffer)
Parameters:
Colorcolor: the color of the debug cross.booluseZBuffer: whether the cross should use the z-buffer.
Callbacks
No callbacks.