pub struct VoxelShapeRef {
pub class: VoxelClass,
pub sizes: [u8; 3],
pub xs: &'static [f64],
pub ys: &'static [f64],
pub zs: &'static [f64],
pub cells: &'static [u64],
pub empty: bool,
pub boxes: &'static [Aabb],
}Expand description
A vanilla collision VoxelShape (block-local), exactly as the jar has it.
Fields§
§class: VoxelClassImplementation class.
sizes: [u8; 3]Cell counts [nx, ny, nz] (0, 0, 0 for the empty shape).
xs: &'static [f64]getCoords(X) (nx + 1 values; the empty shape has [0.0]).
ys: &'static [f64]getCoords(Y).
zs: &'static [f64]getCoords(Z).
cells: &'static [u64]Filled-cell bitset, bit index (x * ny + y) * nz + z, 64 bits per word.
empty: boolVoxelShape.isEmpty().
boxes: &'static [Aabb]toAabbs() in vanilla’s order.
Implementations§
Trait Implementations§
Source§impl Clone for VoxelShapeRef
impl Clone for VoxelShapeRef
impl Copy for VoxelShapeRef
Source§impl Debug for VoxelShapeRef
impl Debug for VoxelShapeRef
Source§impl PartialEq for VoxelShapeRef
impl PartialEq for VoxelShapeRef
impl StructuralPartialEq for VoxelShapeRef
Auto Trait Implementations§
impl Forget for VoxelShapeRef
impl Freeze for VoxelShapeRef
impl Move for VoxelShapeRef
impl RefUnwindSafe for VoxelShapeRef
impl Send for VoxelShapeRef
impl Sync for VoxelShapeRef
impl Unpin for VoxelShapeRef
impl UnsafeUnpin for VoxelShapeRef
impl UnwindSafe for VoxelShapeRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more