From 0569ffd2d85585eb69de9068ab3f62e768bce4e7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Dec 2025 14:59:26 +0700 Subject: write/update docs for several items --- azalea-physics/src/collision/blocks.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'azalea-physics/src/collision') diff --git a/azalea-physics/src/collision/blocks.rs b/azalea-physics/src/collision/blocks.rs index 8dc01228..2622aeb7 100644 --- a/azalea-physics/src/collision/blocks.rs +++ b/azalea-physics/src/collision/blocks.rs @@ -14,7 +14,14 @@ use super::VoxelShape; use crate::collision::{self, Shapes}; pub trait BlockWithShape { + /// The hitbox for blocks that's used when simulating physics. fn collision_shape(&self) -> &'static VoxelShape; + /// The hitbox for blocks that's used for determining whether we're looking + /// at it. + /// + /// This is often but not always the same as the collision shape. For + /// example, tall grass has a normal outline shape but an empty collision + /// shape. fn outline_shape(&self) -> &'static VoxelShape; /// Tells you whether the block has an empty shape. /// -- cgit v1.2.3