pub struct Shapes;
Implementations§
Source§impl Shapes
impl Shapes
pub fn or(a: VoxelShape, b: VoxelShape) -> VoxelShape
pub fn collide( axis: &Axis, entity_box: &AABB, collision_boxes: &Vec<VoxelShape>, movement: f64, ) -> f64
pub fn join( a: VoxelShape, b: VoxelShape, op: fn(_: bool, _: bool) -> bool, ) -> VoxelShape
pub fn join_unoptimized( a: VoxelShape, b: VoxelShape, op: fn(_: bool, _: bool) -> bool, ) -> VoxelShape
Sourcepub fn matches_anywhere(
a: &VoxelShape,
b: &VoxelShape,
op: impl Fn(bool, bool) -> bool,
) -> bool
pub fn matches_anywhere( a: &VoxelShape, b: &VoxelShape, op: impl Fn(bool, bool) -> bool, ) -> bool
Check if the op is true anywhere when joining the two shapes vanilla calls this joinIsNotEmpty
pub fn matches_anywhere_with_mergers( merged_x: IndexMerger, merged_y: IndexMerger, merged_z: IndexMerger, shape1: DiscreteVoxelShape, shape2: DiscreteVoxelShape, op: impl Fn(bool, bool) -> bool, ) -> bool
pub fn create_index_merger( _var0: i32, coords1: &[f64], coords2: &[f64], var3: bool, var4: bool, ) -> IndexMerger
Auto Trait Implementations§
impl Freeze for Shapes
impl RefUnwindSafe for Shapes
impl Send for Shapes
impl Sync for Shapes
impl Unpin for Shapes
impl UnwindSafe for Shapes
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.