[][src]Trait physx::articulation_base::ArticulationBase

pub trait ArticulationBase: Class<PxArticulationBase> + Base {
    type ArticulationLink: ArticulationLink;
    pub fn set_solver_iteration_counts(
        &mut self,
        min_position_iters: u32,
        min_velocity_iters: u32
    ) { ... }
pub fn get_solver_iteration_counts(&self) -> (u32, u32) { ... }
pub fn is_sleeping(&self) -> bool { ... }
pub fn set_sleep_threshold(&mut self, threshold: f32) { ... }
pub fn get_sleep_threshold(&self) -> f32 { ... }
pub fn set_stabilization_threshold(&mut self, threshold: f32) { ... }
pub fn get_stabilization_threshold(&self) -> f32 { ... }
pub fn set_wake_counter(&mut self, threshold: f32) { ... }
pub fn get_wake_counter(&self) -> f32 { ... }
pub fn wake_up(&mut self) { ... }
pub fn put_to_sleep(&mut self) { ... }
pub fn get_nb_links(&self) -> usize { ... }
pub fn root_link(&self) -> Option<&Self::ArticulationLink> { ... }
pub fn root_link_mut(&mut self) -> Option<&mut Self::ArticulationLink> { ... }
pub fn get_links(&self) -> Vec<&Self::ArticulationLink> { ... }
pub fn get_links_mut(&mut self) -> Vec<&mut Self::ArticulationLink> { ... }
pub fn get_world_bounds(&self, inflation: f32) -> PxBounds3 { ... }
pub fn create_link(
        &mut self,
        parent: Option<&mut Self::ArticulationLink>,
        pose: &PxTransform,
        user_data: <Self::ArticulationLink as UserData>::UserData
    ) -> Option<&mut Self::ArticulationLink> { ... }
pub fn create_articulation_joint<J: ArticulationJointBase>(
        &mut self,
        parent: &mut Self::ArticulationLink,
        parent_frame: &PxTransform,
        child: &mut Self::ArticulationLink,
        child_frame: &PxTransform
    ) -> Option<&mut J> { ... }
pub unsafe fn release_articulation_joint(
        &mut self,
        joint: &mut impl ArticulationJointBase
    ) { ... } }

Associated Types

Loading content...

Provided methods

pub fn set_solver_iteration_counts(
    &mut self,
    min_position_iters: u32,
    min_velocity_iters: u32
)
[src]

Sets the number of iterations the solver should perform. If the articulation is behaving erratically, increasing the iteration counts may improve stability.

pub fn get_solver_iteration_counts(&self) -> (u32, u32)[src]

Get the number of (position, velocity) iterations the solver will perform.

pub fn is_sleeping(&self) -> bool[src]

Check if the articulation is sleeping

pub fn set_sleep_threshold(&mut self, threshold: f32)[src]

Set the inactivity threshold for sleeping this articulation

pub fn get_sleep_threshold(&self) -> f32[src]

Read back the inactivity threshold

pub fn set_stabilization_threshold(&mut self, threshold: f32)[src]

Set the stabilization threshold for this articulation

pub fn get_stabilization_threshold(&self) -> f32[src]

Get the stabilization threshold for this articulation

pub fn set_wake_counter(&mut self, threshold: f32)[src]

Set the counter for how many steps more the articulation will be awake if below the energy threshold. When this is non-zero, the articulation may sleep but is not required to do so depending on other factors.

pub fn get_wake_counter(&self) -> f32[src]

Get the counter for how many steps more the agent will be awake if below the energy threshold.

pub fn wake_up(&mut self)[src]

Wake up the articulation

pub fn put_to_sleep(&mut self)[src]

Put the articulation to sleep immediately

Get the total number of links on this articulation

Get a reference the root link of this articulation if it has one

Get a mutable reference to the root link of this articulation if it has one

Get a vec of all the links

Get a mutable vec of all the links

pub fn get_world_bounds(&self, inflation: f32) -> PxBounds3[src]

Get the world bounds of this articulation

Add a link to this articulation

pub fn create_articulation_joint<J: ArticulationJointBase>(
    &mut self,
    parent: &mut Self::ArticulationLink,
    parent_frame: &PxTransform,
    child: &mut Self::ArticulationLink,
    child_frame: &PxTransform
) -> Option<&mut J>
[src]

Create a joint between two articulation Links

pub unsafe fn release_articulation_joint(
    &mut self,
    joint: &mut impl ArticulationJointBase
)
[src]

Release an articulation joint, freeing it.

Safety

attempting to use the joint after this call is invalid.

Loading content...

Implementors

impl<T, C> ArticulationBase for ArticulationMap<T, C> where
    T: Articulation,
    C: ArticulationReducedCoordinate
[src]

impl<U, Link: ArticulationLink> ArticulationBase for PxArticulation<U, Link>[src]

impl<U, Link: ArticulationLink> ArticulationBase for PxArticulationReducedCoordinate<U, Link>[src]

Loading content...