Table of Contents

Class RotatableCube

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll

A rotatable version of a cuboid.

public class RotatableCube : Cuboidf
Inheritance
RotatableCube
Inherited Members

Examples

"selectionboxbytype": {
	"*-up": {
		"x1": 0,
		"y1": 0,
		"z1": 0,
		"x2": 1,
		"y2": 0.4,
		"z2": 1
	},
	"*-north": {
		"x1": 0,
		"y1": 0,
		"z1": 0,
		"x2": 1,
		"y2": 0.4,
		"z2": 1,
		"rotateZ": 90,
		"rotateY": 270
	},
	...
},

Fields

Origin (Optional) (Default: (0.5, 0.5, 0.5))

The origin point for the object to rotate around. Measured in meters from zero, not percent.

public Vec3d Origin

Field Value

Vec3d

RotateX (Optional) (Default: 0)

The cube's rotation around the X axis.

public float RotateX

Field Value

float

RotateY (Optional) (Default: 0)

The cube's rotation around the Y axis.

public float RotateY

Field Value

float

RotateZ (Optional) (Default: 0)

The cube's rotation around the Z axis.

public float RotateZ

Field Value

float