Class IVoxelGrid.Voxel
Inheritance
System.Object
IVoxelGrid.Voxel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CarbideFunction.Wildtile
Syntax
public class Voxel
Fields
contents
Whether this voxel is filled (1) or empty (0).
Declaration
public int contents
Field Value
Type | Description |
---|---|
System.Int32 |
downNeighbourVoxelIndex
The index of the voxel below this voxel.
Declaration
public int downNeighbourVoxelIndex
Field Value
Type | Description |
---|---|
System.Int32 |
horizontalVoxelFaces
This list is ordered clockwise around this voxel when viewed from above. The vertex and the next bound the edge to the corresponding neighbour voxel (so 0-1 will draw the border edge to horizontal neighbour 0, 1-2 will draw the edge to horizontal neighbour 1). The final vertex and the zeroth vertex bound the edge to the final neighbour.
Declaration
public IVoxelGrid.VoxelFace[] horizontalVoxelFaces
Field Value
Type | Description |
---|---|
IVoxelGrid.VoxelFace[] |
lowerUvY
The floor UV value for the voxel.
Declaration
public float lowerUvY
Field Value
Type | Description |
---|---|
System.Single |
lowerYCoordinate
The floor height of the voxel.
Declaration
public float lowerYCoordinate
Field Value
Type | Description |
---|---|
System.Single |
upNeighbourVoxelIndex
The index of the voxel above this voxel.
Declaration
public int upNeighbourVoxelIndex
Field Value
Type | Description |
---|---|
System.Int32 |
upperUvY
The ceiling UV value for the voxel.
Declaration
public float upperUvY
Field Value
Type | Description |
---|---|
System.Single |
upperYCoordinate
The ceiling height of the voxel.
Declaration
public float upperYCoordinate
Field Value
Type | Description |
---|---|
System.Single |
voxelCenter
The horizontal middle of the voxel.
Declaration
public Vector2 voxelCenter
Field Value
Type | Description |
---|---|
Vector2 |