pub struct DistanceInput {
pub proxy_a: ShapeProxy,
pub proxy_b: ShapeProxy,
pub transform: Transform,
pub use_radii: bool,
}Expand description
Input for shape_distance.
(b2DistanceInput)
Fields§
§proxy_a: ShapeProxyThe proxy for shape A
proxy_b: ShapeProxyThe proxy for shape B
transform: TransformTransform of shape B in shape A’s frame, the relative pose B in A
(inv_mul_transforms(world_a, world_b)). The query is origin
independent and runs in frame A.
use_radii: boolShould the proxy radius be considered?
Trait Implementations§
Source§impl Clone for DistanceInput
impl Clone for DistanceInput
Source§fn clone(&self) -> DistanceInput
fn clone(&self) -> DistanceInput
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 DistanceInput
Source§impl Debug for DistanceInput
impl Debug for DistanceInput
Source§impl PartialEq for DistanceInput
impl PartialEq for DistanceInput
impl StructuralPartialEq for DistanceInput
Auto Trait Implementations§
impl Freeze for DistanceInput
impl RefUnwindSafe for DistanceInput
impl Send for DistanceInput
impl Sync for DistanceInput
impl Unpin for DistanceInput
impl UnsafeUnpin for DistanceInput
impl UnwindSafe for DistanceInput
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