pub struct PhysicsConstraint { /* private fields */ }Expand description
PHCT — Physics constraint (v0, 24 bytes)
Constrains two rigid bodies with break-force threshold.
Implementations§
Source§impl PhysicsConstraint
impl PhysicsConstraint
Sourcepub fn dependents(&self) -> &[u16]
pub fn dependents(&self) -> &[u16]
Dependent bone indices (U16_)
Zero-copy view of the underlying std::vector.
Sourcepub fn dependents_mut(&mut self) -> &mut [u16]
pub fn dependents_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_dependents(&mut self, values: &[u16])
pub fn resize_dependents(&mut self, count: usize)
Sourcepub fn rigid_body_1(&self) -> u16
pub fn rigid_body_1(&self) -> u16
First rigid body index
pub fn set_rigid_body_1(&mut self, value: u16)
Sourcepub fn rigid_body_2(&self) -> u16
pub fn rigid_body_2(&self) -> u16
Second rigid body index
pub fn set_rigid_body_2(&mut self, value: u16)
Sourcepub fn break_force(&self) -> f32
pub fn break_force(&self) -> f32
Force required to break constraint
pub fn set_break_force(&mut self, value: f32)
Trait Implementations§
Source§impl Debug for PhysicsConstraint
impl Debug for PhysicsConstraint
Source§impl Default for PhysicsConstraint
impl Default for PhysicsConstraint
Source§impl Drop for PhysicsConstraint
impl Drop for PhysicsConstraint
impl Send for PhysicsConstraint
Auto Trait Implementations§
impl !Sync for PhysicsConstraint
impl Freeze for PhysicsConstraint
impl RefUnwindSafe for PhysicsConstraint
impl Unpin for PhysicsConstraint
impl UnsafeUnpin for PhysicsConstraint
impl UnwindSafe for PhysicsConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more