Struct rubullet::RayTestBatchOptions [−][src]
pub struct RayTestBatchOptions { pub parent_object_id: Option<BodyId>, pub parent_link_index: Option<usize>, pub num_threads: Option<usize>, pub report_hit_number: Option<usize>, pub fraction_epsilon: Option<f64>, pub collision_filter_mask: Option<i32>, }
Expand description
Options for ray_test_batch
Fields
parent_object_id: Option<BodyId>
ray from/to is in local space of a parent object
parent_link_index: Option<usize>
ray from/to is in local space of a link.
num_threads: Option<usize>
use multiple threads to compute ray tests (0 = use all threads available, positive number = exactly this amoung of threads, default = None = single-threaded)
report_hit_number: Option<usize>
instead of first closest hit, you can report the n-th hit
fraction_epsilon: Option<f64>
only useful when using report_hit_number: ignore duplicate hits if the fraction is similar to an existing hit within this fractionEpsilon when hitting the same body. For example, a ray may hit many co-planar triangles of one body, you may only be interested in one of those hits.
collision_filter_mask: Option<i32>
only test hits if the bitwise and between collisionFilterMask and body collision filter group is non-zero. See set_collision_filter_group_mask on how to modify the body filter mask/group.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RayTestBatchOptions
impl Send for RayTestBatchOptions
impl Sync for RayTestBatchOptions
impl Unpin for RayTestBatchOptions
impl UnwindSafe for RayTestBatchOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V