pub trait ArticulationLink: Class<PxArticulationLink> + RigidBody + UserData {
    // Provided methods
    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_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§

source

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.

source

fn get_user_data(&self) -> &Self::UserData

Get the user data.

source

fn get_user_data_mut(&mut self) -> &mut Self::UserData

Get the user data.

source

fn enable_collision(&mut self, enable: bool)

Enable collisions for this link. Equivalent to setting SimulationShape to false for all attached shapes.

Get the index of the this link in it’s parent articulation’s link list.

source

fn get_inbound_joint_dof(&self) -> u32

Get the degrees of freedom of the inbound joint.

source

fn get_nb_children(&self) -> u32

Get the number of children links this link has.

source

fn get_children(&self) -> Vec<&Self>

Gets a Vec of the child links of this link.

Implementors§