Expand description
VoxelShape collision operations.
Implements vanillaβs Shapes class methods for AABB-list based collision.
ConstantsΒ§
- COLLISION_
EPSILON π
FunctionsΒ§
- collide
- Computes the maximum safe movement along an axis for an entity AABB through a list of obstacle shapes.
- collide_
single π - cross_
axes π - face_
shape_ occludes - Checks whether two face occlusion shapes fully cover a block face.
- join_
is_ not_ empty - Tests if two shapes have a non-empty intersection (boolean AND operation).
- merged_
face_ occludes - Checks if two voxel shapes fully occlude the face between them. Returns true if fluid/objects cannot pass through the face.
- merged_
offset_ face_ occludes - Checks if two position-offset voxel shapes fully occlude the face between them.
- overlaps_
for_ πcollision - project_
offset_ πshape_ onto_ grid - project_
shape_ πonto_ grid - translate_
shape - Translates a
VoxelShape(block-local AABB) to world coordinates.