Struct ark_api::world::CollisionInfo
source · #[repr(C)]pub struct CollisionInfo {
pub entities: EntityPair,
pub world_pos_approximate: [f32; 3],
pub _pad0: u32,
pub impulse_sum: [f32; 3],
pub _pad1: u32,
}Fields§
§entities: EntityPairThe entities involved in the collision. We include it here since the order of it affects the interpretation of the impulse_sum vector.
world_pos_approximate: [f32; 3]§_pad0: u32§impulse_sum: [f32; 3]The sum of the impulses in this collision. In the direction applied to entities.a.
_pad1: u32Trait Implementations§
source§impl Clone for CollisionInfo
impl Clone for CollisionInfo
source§fn clone(&self) -> CollisionInfo
fn clone(&self) -> CollisionInfo
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 moresource§impl Debug for CollisionInfo
impl Debug for CollisionInfo
source§impl PartialEq<CollisionInfo> for CollisionInfo
impl PartialEq<CollisionInfo> for CollisionInfo
source§fn eq(&self, other: &CollisionInfo) -> bool
fn eq(&self, other: &CollisionInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CollisionInfo
impl Pod for CollisionInfo
impl StructuralPartialEq for CollisionInfo
Auto Trait Implementations§
impl RefUnwindSafe for CollisionInfo
impl Send for CollisionInfo
impl Sync for CollisionInfo
impl Unpin for CollisionInfo
impl UnwindSafe for CollisionInfo
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.