Skip to main content

GizmoPath

class GizmoPath

Class responsible for creating a path, such as a line.


public class GizmoPath extends GizmoElement

— Constructors (1) —

ConstructorDescription
GizmoPath()Creates a new GizmoPath.

— Methods (25) —

NameDescription
Color getColor()Returns the current GizmoPath color.
void setColor(Color color)Sets the current GizmoPath color to be "color" argument.
Vector3 getPosition()Returns the current position of GizmoPath.
void setPosition(Vector3 position)Sets the current position of GizmoPath to be "position" argument.
void setPosition(float x, float y, float z)Sets GizmoPath's current X position to be "x" argument, Y position to be "y" argument, and Z position to be "z" argument.
Quaternion getRotation()Returns the current GizmoPath rotation.
void setRotation(Quaternion rotation)Sets the current GizmoPath rotation to be "rotation" argument.
void setRotation(float x, float y, float z)Sets GizmoPath's current X rotation to be "x" argument, Y rotation to be "y" argument, and Z rotation to be "z" argument.
void setRotation(float x, float y, float z, float w)Sets GizmoPath's current X rotation to be "x" argument, Y rotation to be "y" argument, Z rotation to be "z" argument, and W rotation to be "w" argument.
Vector3 getScale()Returns the current GizmoPath scale.
void setScale(Vector3 scale)Sets the current scale of GizmoPath to be "scale" argument.
void setScale(float x, float y, float z)Sets the current width of the GizmoPath to be "x" argument, height to be "y" argument, and length to be "z" argument.
[float[] getMatrix()GizmoPathReturns the current render matrix of the GizmoPath.
void setMatrix([float[]] matrix)Sets the current rendering matrix of GizmoPath to be "matrix" argument.
Object getUserPointer()Returns an Object.
void setUserPointer(Object userPointer)Defines an Object to be "userPointer" argument.
void clear()Deletes all modifications applied to GizmoPath.
GizmoPath addLine(Vector3 from, Vector3 to)Renders a line in GizmoPath with the start of the line defined to be "from" argument and the end of the line to be "to" argument.
GizmoPath addPath(List\<Vector2> path)Renders a line passing through the points defined to be "path" argument list.
int getWireFrameWidth()Returns the current width of the GizmoPath's WireFrame (line-only rendering mode) rendering mode.
void setWireFrameWidth(int wireFrameWidth)Sets the current width of the WireFrame (line-only rendering mode) rendering mode of the GizmoPath to be "wireFrameWidth" argument.
void apply()Applies all modifications made to GizmoPath.
void destroy()Deletes GizmoPath.
Vertex getVertex()Returns the current vertex of the GizmoPath.
[RenderMode] getRenderMode()Returns the current rendering mode ("Triangles", "WireFrame", "Both" or "SimpleWireFrame") of the GizmoPath.