Trait physx::articulation_link::ArticulationLink
source · [−]pub trait ArticulationLink: Class<PxArticulationLink> + RigidBody + UserData {
unsafe fn from_raw(
ptr: *mut PxArticulationLink,
user_data: Self::UserData
) -> Option<Owner<Self>> { ... }
fn get_user_data(&self) -> &Self::UserData { ... }
fn get_user_data_mut(&mut self) -> &mut Self::UserData { ... }
fn enable_collision(&mut self, enable: bool) { ... }
fn get_inbound_joint(&self) -> Option<&JointMap> { ... }
fn get_link_index(&self) -> u32 { ... }
fn get_inbound_joint_dof(&self) -> u32 { ... }
fn get_nb_children(&self) -> u32 { ... }
fn get_children(&self) -> Vec<&Self> { ... }
}
Provided Methods
sourceunsafe fn from_raw(
ptr: *mut PxArticulationLink,
user_data: Self::UserData
) -> Option<Owner<Self>>
unsafe fn from_raw(
ptr: *mut PxArticulationLink,
user_data: Self::UserData
) -> Option<Owner<Self>>
Safety
Owner’s own the pointer they wrap, using the pointer after dropping the Owner,
or creating multiple Owners from the same pointer will cause UB. Use into_ptr
to
retrieve the pointer and consume the Owner without dropping the pointee.
Initializes user data.
sourcefn get_user_data(&self) -> &Self::UserData
fn get_user_data(&self) -> &Self::UserData
Get the user data.
sourcefn get_user_data_mut(&mut self) -> &mut Self::UserData
fn get_user_data_mut(&mut self) -> &mut Self::UserData
Get the user data.
sourcefn enable_collision(&mut self, enable: bool)
fn enable_collision(&mut self, enable: bool)
Enable collisions for this link. Equivalent to setting SimulationShape to false for all attached shapes.
sourcefn get_inbound_joint(&self) -> Option<&JointMap>
fn get_inbound_joint(&self) -> Option<&JointMap>
Get inbound joint for this link
sourcefn get_link_index(&self) -> u32
fn get_link_index(&self) -> u32
Get the index of the this link in it’s parent articulation’s link list.
sourcefn get_inbound_joint_dof(&self) -> u32
fn get_inbound_joint_dof(&self) -> u32
Get the degrees of freedom of the inbound joint.
sourcefn get_nb_children(&self) -> u32
fn get_nb_children(&self) -> u32
Get the number of children links this link has.
sourcefn get_children(&self) -> Vec<&Self>
fn get_children(&self) -> Vec<&Self>
Gets a Vec of the child links of this link.