VoxelBlockyModelCube
Generates a cube model with specific tiles on its sides.
Generates a cube model with specific tiles on its sides.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelBlockyModelCubeConstructor
public VoxelBlockyModelCube();Properties3
AtlasSizeInTilesProperty
public Vector2I AtlasSizeInTiles { get; set; }Sets a reference size of texture atlas, in tiles. It must be set so the model generates correct texture coordinates from specified tile positions. If you are not using an atlas and every side uses the same full texture, use (1,1).
HeightProperty
public float Height { get; set; }MeshOrthoRotationIndexProperty
public int MeshOrthoRotationIndex { get; set; }Methods6
GetAtlasSizeInTilesVector2I
public Vector2I GetAtlasSizeInTiles();Returns
Vector2IGetHeightfloat
public float GetHeight();Returns
floatGetTileVector2I
public Vector2I GetTile(VoxelBlockyModel.Side side);| Name | Type | Default |
|---|---|---|
side | VoxelBlockyModel.Side | — |
Returns
Vector2ISetAtlasSizeInTilesvoid
public void SetAtlasSizeInTiles(Vector2I ts);| Name | Type | Default |
|---|---|---|
ts | Vector2I | — |
SetHeightvoid
public void SetHeight(float h);| Name | Type | Default |
|---|---|---|
h | float | — |
SetTilevoid
public void SetTile(VoxelBlockyModel.Side side, Vector2I position);| Name | Type | Default |
|---|---|---|
side | VoxelBlockyModel.Side | — |
position | Vector2I | — |
Reckfell Engine documentationBack to top ↑