ColliderCube

@Serializable
data class ColliderCube(val minX: Double, val minY: Double, val minZ: Double, val size: Double)

A cube-shaped hard collider for an entity-backed block model.

Coordinates are relative to the block's position. The cube may be positioned outside the block.

Constructors

Link copied to clipboard
constructor(minX: Double, minY: Double, minZ: Double, size: Double)

Properties

Link copied to clipboard

The x-coordinate of the cube's center relative to the block's position.

Link copied to clipboard

The y-coordinate of the cube's center relative to the block's position.

Link copied to clipboard

The z-coordinate of the cube's center relative to the block's position.

Link copied to clipboard

The maximum x-coordinate relative to the block's position.

Link copied to clipboard

The maximum y-coordinate relative to the block's position.

Link copied to clipboard

The maximum z-coordinate relative to the block's position.

Link copied to clipboard

The minimum x-coordinate relative to the block's position.

Link copied to clipboard

The minimum y-coordinate relative to the block's position.

Link copied to clipboard

The minimum z-coordinate relative to the block's position.

Link copied to clipboard

The length of every edge. Must be between 1/16 and 16 blocks.