Struct azalea_block::BlockBehavior
source · pub struct BlockBehavior {
pub has_collision: bool,
pub friction: f32,
pub jump_factor: f32,
}Fields§
§has_collision: bool§friction: f32§jump_factor: f32Implementations§
source§impl BlockBehavior
impl BlockBehavior
pub fn no_collision(self) -> Self
pub fn friction(self, friction: f32) -> Self
pub fn jump_factor(self, jump_factor: f32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BlockBehavior
impl Send for BlockBehavior
impl Sync for BlockBehavior
impl Unpin for BlockBehavior
impl UnwindSafe for BlockBehavior
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