Base class for all primitive meshes. Handles applying a Material to a primitive mesh.
    public abstract class PrimitiveMesh : Mesh

Base class for all primitive meshes. Handles applying a Material to a primitive mesh. Examples include CapsuleMesh, CubeMesh, CylinderMesh, PlaneMesh, PrismMesh, QuadMesh, and SphereMesh.

Inheritance Chain

Derived Classes

Properties

    public AABB CustomAabb { get; set; }

Overrides the AABB with one defined by user for use with frustum culling. Especially useful to avoid unnexpected culling when using a shader to offset vertices.

    public bool FlipFaces { get; set; }

If set, the order of the vertices in each triangle are reversed resulting in the backside of the mesh being drawn. Result is the same as using CULL_BACK in SpatialMaterial.

    public Material Material { get; set; }

The current Material of the primitive mesh.

Methods

    [Obsolete("GetCustomAabb is deprecated. Use the CustomAabb property instead.")]
    public AABB GetCustomAabb()

Getter for CustomAabb

    [Obsolete("GetFlipFaces is deprecated. Use the FlipFaces property instead.")]
    public bool GetFlipFaces()

Getter for FlipFaces

    [Obsolete("GetMaterial is deprecated. Use the Material property instead.")]
    public Material GetMaterial()

Getter for Material

    public Godot.Collections.Array GetMeshArrays()

Returns mesh arrays used to constitute surface of Mesh. Mesh arrays can be used with ArrayMesh to create new surfaces.

    [Obsolete("SetCustomAabb is deprecated. Use the CustomAabb property instead.")]
    public void SetCustomAabb(AABB aabb)

Setter for CustomAabb

    [Obsolete("SetFlipFaces is deprecated. Use the FlipFaces property instead.")]
    public void SetFlipFaces(bool flipFaces)

Setter for FlipFaces

    [Obsolete("SetMaterial is deprecated. Use the Material property instead.")]
    public void SetMaterial(Material material)

Setter for Material

Tags: