Method | Description | |
---|---|---|
Chunk3D ( |
Constructs a new chunk with a reference to the passed chunk template, using that template's width, height and depth and performing deep copies of the lists of contexts and anchors of that template.
|
|
ToString ( ) : string |
Returns the position of this chunk within the level as string.
|
Method | Description | |
---|---|---|
Rotate ( ) : bool |
Rotates this chunk according to the following rules:
|
|
RotateX ( ) : bool |
Rotates this chunk by 90° around the x-axis, changing the positions of all contexts and switching height and depth. If the chunk has been rotated by 360° around the x-axis, it is rotated by 90° around the z-axis after.
|
|
RotateY ( ) : bool |
Rotates this chunk by 90° around the y-axis, changing the positions of all contexts and switching width and depth. If the chunk has been rotated by 360° around the y-axis, it is rotated by 90° around the x-axis after.
|
|
RotateZ ( ) : bool |
Rotates this chunk by 90° around the z-axis, changing the positions of all contexts and switching width and height.
|
|
SetPosition ( Vector3F position ) : void |
Sets the position of this chunk within the level and changes the relative positions of all anchors of this chunk to match its rotation.
|
public Chunk3D ( |
||
chunkTemplate | Chunk template the new chunk will be based on. | |
return | System |