Struct ObjectHitbox
pub struct ObjectHitbox {
pub pos: [f32; 3],
pub hitbox_height: f32,
pub hitbox_radius: f32,
}
Expand description
Hitbox information for an SM64 object.
Fields§
§pos: [f32; 3]
The object’s position (oPosX, oPosY, oPosZ).
hitbox_height: f32
The object’s hitbox height (hitboxHeight).
hitbox_radius: f32
The object’s hitbox radius (hitboxRadius).
Trait Implementations§
§impl Clone for ObjectHitbox
impl Clone for ObjectHitbox
§fn clone(&self) -> ObjectHitbox
fn clone(&self) -> ObjectHitbox
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ObjectHitbox
impl RefUnwindSafe for ObjectHitbox
impl Send for ObjectHitbox
impl Sync for ObjectHitbox
impl Unpin for ObjectHitbox
impl UnwindSafe for ObjectHitbox
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