[−][src]Struct physx::rigid_body::RigidBodyMap
A wrapper for RigidBody, parametrized by the ArticulationLink and
RigidDynamic that may be it's most derived type. Use cast_map
or as_*
to cast to it's most derived type if specialized functionality is needed.
Implementations
impl<L, D> RigidBodyMap<L, D> where
L: ArticulationLink,
D: RigidDynamic,
[src]
L: ArticulationLink,
D: RigidDynamic,
pub fn cast_map<'a, Ret, RDFn, ALFn>(
&'a mut self,
rigid_dynamic_fn: RDFn,
articulation_link_fn: ALFn
) -> Ret where
RDFn: FnMut(&'a mut D) -> Ret,
ALFn: FnMut(&'a mut L) -> Ret,
[src]
&'a mut self,
rigid_dynamic_fn: RDFn,
articulation_link_fn: ALFn
) -> Ret where
RDFn: FnMut(&'a mut D) -> Ret,
ALFn: FnMut(&'a mut L) -> Ret,
Cast to the most-derived type as determined by get_type
, which returns the ActorType.
Because this does not use get_concrete_type
, this method does not have the safety
concerns of the other cast_map
s, and a try_cast_map
method is unneded.
pub fn as_rigid_dynamic(&mut self) -> Option<&mut D>
[src]
Tries to cast to RigidDynamic.
pub fn as_articulation_link(&mut self) -> Option<&mut L>
[src]
Tries to cast to ArticulationLink.
Trait Implementations
impl<P, L, D> Class<P> for RigidBodyMap<L, D> where
PxRigidBody: Class<P>,
L: ArticulationLink,
D: RigidDynamic,
[src]
PxRigidBody: Class<P>,
L: ArticulationLink,
D: RigidDynamic,
Auto Trait Implementations
impl<L, D> RefUnwindSafe for RigidBodyMap<L, D> where
D: RefUnwindSafe,
L: RefUnwindSafe,
[src]
D: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, D> !Send for RigidBodyMap<L, D>
[src]
impl<L, D> !Sync for RigidBodyMap<L, D>
[src]
impl<L, D> Unpin for RigidBodyMap<L, D> where
D: Unpin,
L: Unpin,
[src]
D: Unpin,
L: Unpin,
impl<L, D> UnwindSafe for RigidBodyMap<L, D> where
D: UnwindSafe,
L: UnwindSafe,
[src]
D: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> Actor for T where
T: Class<PxActor> + Base,
[src]
T: Class<PxActor> + Base,
pub fn get_type(&self) -> ActorType
[src]
pub fn get_world_bounds(&self, inflation: f32) -> PxBounds3
[src]
pub fn set_actor_flag(&mut self, flag: ActorFlag, value: bool)
[src]
pub fn set_actor_flags(&mut self, flags: BitFlags<ActorFlag>)
[src]
pub fn get_actor_flags(&self) -> BitFlags<ActorFlag>
[src]
pub fn set_dominance_group(&mut self, group: u8)
[src]
pub fn get_dominance_group(&self) -> u8
[src]
pub fn set_owner_client(&mut self, client: u8)
[src]
pub fn get_owner_client(&self) -> u8
[src]
pub fn enable_visualization(&mut self, enable: bool)
[src]
pub fn enable_gravity(&mut self, enable: bool)
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Base for T where
T: Class<PxBase>,
[src]
T: Class<PxBase>,
pub fn get_concrete_type_name(&self) -> Option<&str>
[src]
pub fn get_concrete_type(&self) -> ConcreteType
[src]
pub fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
[src]
pub fn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
[src]
pub fn get_base_flags(&self) -> BitFlags<BaseFlag>
[src]
pub fn is_releasable(&self) -> bool
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,