Trait physx::articulation_reduced_coordinate::ArticulationReducedCoordinate [−][src]
Provided methods
unsafe fn from_raw(
ptr: *mut PxArticulationReducedCoordinate,
user_data: Self::UserData
) -> Option<Owner<Self>>
[src]
ptr: *mut PxArticulationReducedCoordinate,
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.
This also sets the user data field, all constructors must initialize user data.
fn get_user_data(&self) -> &Self::UserData
[src]
Get a reference to the user data.
fn get_user_data_mut(&mut self) -> &mut Self::UserData
[src]
Get a mutable reference to the user data.
fn common_init(&mut self)
[src]
fn get_dofs(&self) -> usize
[src]
Get the number of dofs for the body
fn set_articulation_flag(&mut self, flag: ArticulationFlag, value: bool)
[src]
Set an articulation flag
fn set_articulation_flags(&mut self, flag: ArticulationFlag)
[src]
Set the articulation flags
fn get_articulation_flags(&self) -> ArticulationFlags
[src]
Get the articulation flags
fn teleport_to(&mut self, pose: &PxTransform)
[src]
Teleport the whole body to the transform and and orientation given by Pose
fn create_cache(&self) -> Option<ArticulationCache>
[src]
Create a new cache for this articulation
fn release_cache(&self, cache: ArticulationCache)
[src]
Release the cache and free the memory
fn get_cache_data_size(&self) -> u32
[src]
Get the memory size of this cache
fn zero_cache(&mut self, cache: &mut ArticulationCache)
[src]
Zero everything in the cache
fn apply_cache(
&mut self,
cache: &mut ArticulationCache,
flag: BitFlags<ArticulationCacheFlag>,
autowake: bool
)
[src]
&mut self,
cache: &mut ArticulationCache,
flag: BitFlags<ArticulationCacheFlag>,
autowake: bool
)
Apply the cache to the articulation
fn copy_internal_state_to_cache(
&self,
cache: &mut ArticulationCache,
flag: BitFlags<ArticulationCacheFlag>
)
[src]
&self,
cache: &mut ArticulationCache,
flag: BitFlags<ArticulationCacheFlag>
)
Copy from the articulation to the cache based on the flags
fn compute_generalized_gravity_force(&self, cache: &mut ArticulationCache)
[src]
Compute generalized gravity forces acting upon the body and store in cache
fn compute_coriolis_and_centrifugal_force(&self, cache: &mut ArticulationCache)
[src]
Compute the coriolis and centrifugal forces acting upon the multibody
fn compute_generalized_external_force(&self, cache: &mut ArticulationCache)
[src]
Compute joint force changes caused by external forces
fn compute_joint_acceleration(&self, cache: &mut ArticulationCache)
[src]
Compute joint acceleration caused by current joint forces
fn compute_joint_force(&self, cache: &mut ArticulationCache)
[src]
Compute joint force caused by changes in joint acceleration
fn compute_dense_jacobian(&self, cache: &mut ArticulationCache) -> (u32, u32)
[src]
Compute dense jacobian and store into the cache. Returns: (cols, rows)
fn compute_coefficient_matrix(&self, cache: &mut ArticulationCache)
[src]
Compute the coefficient matrix and store into cache
fn compute_lambda(
&self,
cache: &mut ArticulationCache,
initial_state: &mut ArticulationCache,
joint_torques: &[f32],
max_iter: u32
) -> bool
[src]
&self,
cache: &mut ArticulationCache,
initial_state: &mut ArticulationCache,
joint_torques: &[f32],
max_iter: u32
) -> bool
Compute the force needed to match the velocity and acceleration values given in initial_state
fn compute_generalized_mass_matrix(&self, cache: &mut ArticulationCache)
[src]
Compute the generalized mass matrix and store into the cache
fn pack_joint_data(&self, maximum: &[f32], reduced: &mut [f32])
[src]
Pack the maximum coordinates data in maximum
into the reduced
coordinates data.
fn unpack_joint_data(&self, reduced: &[f32], maximum: &mut [f32])
[src]
Unpack the reduced/generalized coordinates data in reduced
into maximum
. Maximum needs to have six slots for every joint.
fn get_center_of_mass(&self) -> PxVec3
[src]
Compute the total center of mass w.r.t. all attached shapes
fn get_center_of_mass_and_velocity(&self) -> (PxVec3, PxVec3)
[src]
Compute the total center of mass and velocity w.r.t. all attached shapes
fn set_collision_filter(
&mut self,
this_layer: BitFlags<CollisionLayer>,
other_layer: BitFlags<CollisionLayer>
)
[src]
&mut self,
this_layer: BitFlags<CollisionLayer>,
other_layer: BitFlags<CollisionLayer>
)
Set the collision layer on all links and shapes of this body
fn set_query_filter(&mut self, this_layer: BitFlags<CollisionLayer>)
[src]
Set the collision layer on all links and shapes of this body