Struct physx::articulation_cache::ArticulationCache
source · [−]pub struct ArticulationCache { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Class<PxArticulationCache> for ArticulationCache
impl Class<PxArticulationCache> for ArticulationCache
sourcefn 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. Read more
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArticulationCache
impl !Send for ArticulationCache
impl !Sync for ArticulationCache
impl Unpin for ArticulationCache
impl UnwindSafe for ArticulationCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more