#[repr(C)]pub struct ContactFilter2D {
pub use_triggers: bool,
pub use_layer_mask: bool,
pub use_depth: bool,
pub use_outside_depth: bool,
pub use_normal_angle: bool,
pub use_outside_normal_angle: bool,
pub layer_mask: LayerMask,
pub min_depth: f32,
pub max_depth: f32,
pub min_normal_angle: f32,
pub max_normal_angle: f32,
}Expand description
Fields§
§use_triggers: bool§use_layer_mask: bool§use_depth: bool§use_outside_depth: bool§use_normal_angle: bool§use_outside_normal_angle: bool§layer_mask: LayerMask§min_depth: f32§max_depth: f32§min_normal_angle: f32§max_normal_angle: f32Implementations§
Source§impl ContactFilter2D
impl ContactFilter2D
Sourcepub fn create_legacy_filter(
layer_mask: impl Into<i32>,
min_depth: impl Into<f32>,
max_depth: impl Into<f32>,
) -> ContactFilter2D
pub fn create_legacy_filter( layer_mask: impl Into<i32>, min_depth: impl Into<f32>, max_depth: impl Into<f32>, ) -> ContactFilter2D
CreateLegacyFilter(i32, f32, f32) overload
Sourcepub fn check_consistency_injected() -> ContactFilter2D
pub fn check_consistency_injected() -> ContactFilter2D
CheckConsistency_Injected(*mutcrate::unity_engine::contactfilter2d::ContactFilter2D) overload
Source§impl ContactFilter2D
impl ContactFilter2D
Sourcepub fn check_consistency(&mut self)
pub fn check_consistency(&mut self)
CheckConsistency() overload
Sourcepub fn set_layer_mask(&mut self, layer_mask: impl Into<LayerMask>)
pub fn set_layer_mask(&mut self, layer_mask: impl Into<LayerMask>)
SetLayerMask(crate::unity_engine::layermask::LayerMask) overload
Source§impl ContactFilter2D
impl ContactFilter2D
pub fn check_consistency_method_info() -> &'static MethodInfo
pub fn set_layer_mask_method_info() -> &'static MethodInfo
pub fn set_depth_method_info() -> &'static MethodInfo
pub fn create_legacy_filter_method_info() -> &'static MethodInfo
pub fn check_consistency_injected_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for ContactFilter2D
impl ClassIdentity for ContactFilter2D
Source§impl Clone for ContactFilter2D
impl Clone for ContactFilter2D
Source§fn clone(&self) -> ContactFilter2D
fn clone(&self) -> ContactFilter2D
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContactFilter2D
Auto Trait Implementations§
impl Freeze for ContactFilter2D
impl RefUnwindSafe for ContactFilter2D
impl Send for ContactFilter2D
impl Sync for ContactFilter2D
impl Unpin for ContactFilter2D
impl UnwindSafe for ContactFilter2D
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)