Documentation
¶
Overview ¶
Package shape stores information about the shapes of blocks in Minecraft.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ByBlockID = map[block.ID][]ID{}/* 763 elements not displayed */
ByBlockID is an index of shapes for each minecraft block variant.
View Source
var Dimensions = map[ID]Shape{}/* 271 elements not displayed */
Dimensions describes the bounding boxes of a shape ID.
Functions ¶
This section is empty.
Types ¶
type BoundingBox ¶
type BoundingBox struct {
Min, Max BoundingTriplet
}
func CollisionBoxes ¶
func CollisionBoxes(bStateID world.BlockStatus) ([]BoundingBox, error)
CollisionBoxes returns the set of bounding boxes for that block state ID.
type BoundingTriplet ¶
type BoundingTriplet struct {
X, Y, Z float64
}
type Shape ¶
type Shape struct { ID ID Boxes []BoundingBox }
Shape describes how collisions should be tested for an object.
Click to show internal directories.
Click to hide internal directories.