Search Results for

    Show / Hide Table of Contents

    Struct IVoxelGrid.VoxelFace

    This struct contains information about the quads that compose this voxel.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: CarbideFunction.Wildtile
    Syntax
    public struct VoxelFace

    Constructors

    VoxelFace(Vector2, Vector2, Int32, Boolean)

    Basic constructor.

    Declaration
    public VoxelFace(Vector2 edgeMidpoint, Vector2 corner, int facingVoxelIndex, bool breakBetweenThisFaceAndNext)
    Parameters
    Type Name Description
    Vector2 edgeMidpoint
    Vector2 corner
    System.Int32 facingVoxelIndex
    System.Boolean breakBetweenThisFaceAndNext

    Fields

    breakBetweenThisFaceAndNext

    Do the quads between this face's midpoint, this face's corner, and the next face's midpoint point out of bounds?

    Declaration
    public bool breakBetweenThisFaceAndNext
    Field Value
    Type Description
    System.Boolean

    corner

    The location of this corner of the voxel.

    Declaration
    public Vector2 corner
    Field Value
    Type Description
    Vector2

    edgeMidpoint

    A location between this corner and the next corner. Might not be exactly between the corners, and might not be in line.

    Declaration
    public Vector2 edgeMidpoint
    Field Value
    Type Description
    Vector2

    facingVoxelIndex

    Which voxel does this face look towards?

    If the voxel is the out of bounds voxel then this face is not filled.

    Declaration
    public int facingVoxelIndex
    Field Value
    Type Description
    System.Int32
    In This Article
    Generated by DocFX Wildtile Documentation