Struct physx::articulation_cache::ArticulationCache
source · pub struct ArticulationCache { /* private fields */ }
Implementations§
source§impl ArticulationCache
impl ArticulationCache
pub fn new( px_articulation_cache: NonNull<PxArticulationCache> ) -> ArticulationCache
pub fn proxy(&self) -> Self
pub fn compute_dof_information( &mut self, articulation: &impl ArticulationReducedCoordinate )
pub fn get_offset(&self, link_index: usize) -> u32
pub fn get_dofs(&self, link_index: usize) -> u8
pub fn set_joint_position(&mut self, link_index: usize, data: &[f32])
pub fn set_joint_velocity(&mut self, link_index: usize, data: &[f32])
pub fn set_joint_acceleration(&mut self, link_index: usize, data: &[f32])
pub fn set_joint_force(&mut self, link_index: usize, data: &[f32])
pub fn read_joint_position(&self, link_index: usize) -> &[f32]
pub fn read_joint_velocity(&self, link_index: usize) -> &[f32]
pub fn read_joint_acceleration(&self, link_index: usize) -> &[f32]
pub fn read_joint_force(&self, link_index: usize) -> &[f32]
pub fn read_root_link_data(&self) -> ArticulationRootLinkData
pub fn set_root_link_data(&mut self, data: ArticulationRootLinkData)
Trait Implementations§
source§impl Class<PxArticulationCache> for ArticulationCache
impl Class<PxArticulationCache> for ArticulationCache
source§fn as_ptr(&self) -> *const PxArticulationCache
fn as_ptr(&self) -> *const PxArticulationCache
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.
source§fn as_mut_ptr(&mut self) -> *mut PxArticulationCache
fn as_mut_ptr(&mut self) -> *mut PxArticulationCache
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.