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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.