reckfellENGINE

VoxelBlockyModelCube

Generates a cube model with specific tiles on its sides.

On this page
class VoxelBlockyModelCubeReckfellSharpInherits VoxelBlockyModel

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
# VoxelBlockyModelCube
C#
public VoxelBlockyModelCube();

Properties3

AtlasSizeInTilesProperty
# AtlasSizeInTiles
C#
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
# Height
C#
public float Height { get; set; }
MeshOrthoRotationIndexProperty
# MeshOrthoRotationIndex
C#
public int MeshOrthoRotationIndex { get; set; }

Methods6

GetAtlasSizeInTilesVector2I
# GetAtlasSizeInTiles
C#
public Vector2I GetAtlasSizeInTiles();
Returns Vector2I
GetHeightfloat
# GetHeight
C#
public float GetHeight();
Returns float
GetTileVector2I
# GetTile
C#
public Vector2I GetTile(VoxelBlockyModel.Side side);
Parameters
NameTypeDefault
sideVoxelBlockyModel.Side—
Returns Vector2I
SetAtlasSizeInTilesvoid
# SetAtlasSizeInTiles
C#
public void SetAtlasSizeInTiles(Vector2I ts);
Parameters
NameTypeDefault
tsVector2I—
SetHeightvoid
# SetHeight
C#
public void SetHeight(float h);
Parameters
NameTypeDefault
hfloat—
SetTilevoid
# SetTile
C#
public void SetTile(VoxelBlockyModel.Side side, Vector2I position);
Parameters
NameTypeDefault
sideVoxelBlockyModel.Side—
positionVector2I—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.