#[repr(C)]pub struct QueryRecord {Show 23 fields
pub kind: u32,
pub shape_kind: u32,
pub filter_flags: u32,
pub slot: u32,
pub group: u32,
pub mask: u32,
pub source: u32,
pub max_hits: u32,
pub exclude_id: u32,
pub exclude_generation: u32,
pub include_id: u32,
pub include_generation: u32,
pub origin: [f32; 3],
pub _pad0: f32,
pub direction: [f32; 3],
pub extent: f32,
pub radius: f32,
pub half_height: f32,
pub _pad1: f32,
pub _pad2: f32,
pub half_extents: [f32; 3],
pub _pad3: f32,
pub orientation: [f32; 4],
}Fields§
§kind: u32§shape_kind: u32§filter_flags: u32§slot: u32§group: u32§mask: u32§source: u32§max_hits: u32§exclude_id: u32§exclude_generation: u32§include_id: u32§include_generation: u32§origin: [f32; 3]§_pad0: f32§direction: [f32; 3]§extent: f32§radius: f32§half_height: f32§_pad1: f32§_pad2: f32§half_extents: [f32; 3]§_pad3: f32§orientation: [f32; 4]Implementations§
Source§impl QueryRecord
impl QueryRecord
pub fn ray( origin: [f32; 3], direction: [f32; 3], max_t: f32, filter: &QueryFilter, ) -> Self
pub fn sphere(center: [f32; 3], radius: f32, filter: &QueryFilter) -> Self
pub fn point(origin: [f32; 3], filter: &QueryFilter) -> Self
pub fn cuboid( center: [f32; 3], half_extents: [f32; 3], filter: &QueryFilter, ) -> Self
pub fn convex( shape: &Shape, orientation: [f32; 4], position: [f32; 3], filter: &QueryFilter, ) -> Self
pub fn sweep( shape: &Shape, orientation: [f32; 4], start: [f32; 3], direction: [f32; 3], length: f32, filter: &QueryFilter, ) -> Self
Trait Implementations§
Source§impl Clone for QueryRecord
impl Clone for QueryRecord
Source§fn clone(&self) -> QueryRecord
fn clone(&self) -> QueryRecord
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 QueryRecord
Source§impl Debug for QueryRecord
impl Debug for QueryRecord
Source§impl PartialEq for QueryRecord
impl PartialEq for QueryRecord
impl Pod for QueryRecord
Source§impl StreamRecord for QueryRecord
impl StreamRecord for QueryRecord
impl StructuralPartialEq for QueryRecord
Auto Trait Implementations§
impl Freeze for QueryRecord
impl RefUnwindSafe for QueryRecord
impl Send for QueryRecord
impl Sync for QueryRecord
impl Unpin for QueryRecord
impl UnsafeUnpin for QueryRecord
impl UnwindSafe for QueryRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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,
Source§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.