Package com.rvandoosselaer.blocks.shapes
Class Cube
java.lang.Object
com.rvandoosselaer.blocks.shapes.Cube
- All Implemented Interfaces:
Shape
A shape implementation for a cube. Only 4 vertices are used per face, 2 vertices are shared. A face is only added
to the resulting mesh if the face is visible. eg. When there is a block above this block, the top face will not be
added to the mesh.
The default cube has a Direction.UP.
-
Field Summary
Fields inherited from interface com.rvandoosselaer.blocks.Shape
DIRECTIONS_SIZE, FACES_DIR, ROTATION_DOWN, ROTATION_EAST, ROTATION_NORTH, ROTATION_SOUTH, ROTATION_UP, ROTATION_WEST, YAW_EAST, YAW_NORTH, YAW_UP, YAW_WEST
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Cube
public Cube()
-
-
Method Details