Struct ItemAttackRange
pub struct ItemAttackRange {
pub min: f32,
pub max: f32,
pub hitbox_margin: f32,
}Expand description
Effective attack range for an actor, including the component’s hitbox margin.
Fields§
§min: f32Minimum reach before the margin.
max: f32Maximum reach before the margin.
hitbox_margin: f32Margin added to either end of the range.
Implementations§
Trait Implementations§
§impl Clone for ItemAttackRange
impl Clone for ItemAttackRange
§fn clone(&self) -> ItemAttackRange
fn clone(&self) -> ItemAttackRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ItemAttackRange
§impl Debug for ItemAttackRange
impl Debug for ItemAttackRange
§impl PartialEq for ItemAttackRange
impl PartialEq for ItemAttackRange
impl StructuralPartialEq for ItemAttackRange
Auto Trait Implementations§
impl Freeze for ItemAttackRange
impl RefUnwindSafe for ItemAttackRange
impl Send for ItemAttackRange
impl Sync for ItemAttackRange
impl Unpin for ItemAttackRange
impl UnsafeUnpin for ItemAttackRange
impl UnwindSafe for ItemAttackRange
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