Struct physx::articulation_joint_base::JointMap [−][src]
pub struct JointMap { /* fields omitted */ }
Expand description
A PxArticulatiopnJointBase new type wrapper with methods for safe casts.
Implementations
pub unsafe fn cast_map<'a, Ret, ArtJoFn, ArcJoFn>(
&'a mut self,
art_fn: ArtJoFn,
arc_fn: ArcJoFn
) -> Ret where
ArtJoFn: FnMut(&'a mut ArticulationJoint) -> Ret,
ArcJoFn: FnMut(&'a mut ArticulationJointReducedCoordinate) -> Ret,
pub unsafe fn cast_map<'a, Ret, ArtJoFn, ArcJoFn>(
&'a mut self,
art_fn: ArtJoFn,
arc_fn: ArcJoFn
) -> Ret where
ArtJoFn: FnMut(&'a mut ArticulationJoint) -> Ret,
ArcJoFn: FnMut(&'a mut ArticulationJointReducedCoordinate) -> Ret,
Safety
this relies on get_concrete_type
to determine the joint type,
which has had issues with returning ConcreteType::Undefined for Actor subclasses.
try_cast_map
will return None
when this would crash.
pub fn try_cast_map<'a, Ret, ArtJoFn, ArcJoFn>(
&mut self,
art_fn: ArtJoFn,
arc_fn: ArcJoFn
) -> Option<Ret> where
ArtJoFn: FnMut(&'a mut ArticulationJoint) -> Ret,
ArcJoFn: FnMut(&'a mut ArticulationJointReducedCoordinate) -> Ret,
pub fn as_articulation_joint_reduced_coordinate(
&mut self
) -> Option<&mut ArticulationJointReducedCoordinate>
Trait Implementations
Returns a raw const pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Returns a raw mut pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Auto Trait Implementations
impl RefUnwindSafe for JointMap
impl UnwindSafe for JointMap
Blanket Implementations
Set the pose of the joint in the child frame
Get the pose of the joint in the child frame
Set the pose of the joint in the parent frame
Get the pose of the joint in the parent frame
Get the global pose of this joint.
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
Returns an enumerated value identifying the type. This may return ConcreteType::Undefined
in surprising situations, notably this does not seem to work with get_active_actors
. Use
get_type
for actors if possible. Read more
Set or unset the specified flag on this object.
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use set_base_flag
to set individual flags. Read more
Read the BaseFlags of this object
Returns true if this object can be released, i.e., it is not subordinate.
Mutably borrows from an owned value. Read more