pub struct AssemblyHandles { /* private fields */ }Expand description
Mappings in deterministic plan order, not sorted by recycled world slot.
These are ordinary same-world generational handles; this result neither owns
nor removes world objects. After removal, its copied handles are stale. Local
collider IDs are (LocalBodyId, child_index) in the original child order.
See the module recipe for lookups and template-based reset.
Implementations§
Source§impl AssemblyHandles
impl AssemblyHandles
Sourcepub fn body(&self, id: LocalBodyId) -> Option<RigidBodyHandle>
pub fn body(&self, id: LocalBodyId) -> Option<RigidBodyHandle>
Resolve a plan-local body index, or None if out of range.
Sourcepub fn bodies(&self) -> &[RigidBodyHandle]
pub fn bodies(&self) -> &[RigidBodyHandle]
Bodies in local ID order, including collider-free anchors.
Sourcepub fn collider(
&self,
body: LocalBodyId,
child: usize,
) -> Option<ColliderHandle>
pub fn collider( &self, body: LocalBodyId, child: usize, ) -> Option<ColliderHandle>
Resolve a body-local child index, or None if either index is invalid.
Sourcepub fn colliders(&self, body: LocalBodyId) -> Option<&[ColliderHandle]>
pub fn colliders(&self, body: LocalBodyId) -> Option<&[ColliderHandle]>
Ordered children for one body, including an empty slice for an anchor.
Sourcepub fn joint(&self, id: LocalJointId) -> Option<JointHandle>
pub fn joint(&self, id: LocalJointId) -> Option<JointHandle>
Resolve a plan-local joint index, or None if out of range.
Sourcepub fn joints(&self) -> &[JointHandle]
pub fn joints(&self) -> &[JointHandle]
Joints in local ID order.
Trait Implementations§
Source§impl Clone for AssemblyHandles
impl Clone for AssemblyHandles
Source§fn clone(&self) -> AssemblyHandles
fn clone(&self) -> AssemblyHandles
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssemblyHandles
impl Debug for AssemblyHandles
Source§impl Default for AssemblyHandles
impl Default for AssemblyHandles
Source§fn default() -> AssemblyHandles
fn default() -> AssemblyHandles
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssemblyHandles
impl PartialEq for AssemblyHandles
impl Eq for AssemblyHandles
impl StructuralPartialEq for AssemblyHandles
Auto Trait Implementations§
impl Freeze for AssemblyHandles
impl RefUnwindSafe for AssemblyHandles
impl Send for AssemblyHandles
impl Sync for AssemblyHandles
impl Unpin for AssemblyHandles
impl UnwindSafe for AssemblyHandles
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