Face
A Face represents the face of a Block.
It can be returned when casting a ray, to know which block face has been touched. (see Impact.FaceTouched)
It's also a useful parameter to functions like Block.AddNeighbor, to indicate where to place a Block next to another.
Builtin Face instances can be used, there's no way to create custom Faces.
Built-in instances
Back face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Back)
Bottom face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Bottom)
Front face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Front)
Left face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Left)
Right face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Right)
Top face.
local blockToAdd = Block(1) -- block with PaletteIndex == 1 someMutableShape:GetBlock(4,5,6):AddNeighbor(blockToAdd, Face.Top)