pub struct PhysicsJoint { /* private fields */ }Expand description
PHYJ — Physics joint (v0, 180 bytes)
Connects two rigid bodies with limit, friction, and break-threshold parameters.
Implementations§
Source§impl PhysicsJoint
impl PhysicsJoint
Sourcepub fn joint_type(&self) -> u32
pub fn joint_type(&self) -> u32
Joint type
pub fn set_joint_type(&mut self, value: u32)
Sourcepub fn bone_index_1(&self) -> u32
pub fn bone_index_1(&self) -> u32
First bone index
pub fn set_bone_index_1(&mut self, value: u32)
Sourcepub fn bone_index_2(&self) -> u32
pub fn bone_index_2(&self) -> u32
Second bone index
pub fn set_bone_index_2(&mut self, value: u32)
Sourcepub fn enable_limits(&self) -> u32
pub fn enable_limits(&self) -> u32
Enable angular limits
pub fn set_enable_limits(&mut self, value: u32)
pub fn set_limit_min(&mut self, value: f32)
pub fn set_limit_max(&mut self, value: f32)
Sourcepub fn cone_angle(&self) -> f32
pub fn cone_angle(&self) -> f32
Cone constraint angle
pub fn set_cone_angle(&mut self, value: f32)
Sourcepub fn enable_friction(&self) -> u32
pub fn enable_friction(&self) -> u32
Enable joint friction
pub fn set_enable_friction(&mut self, value: u32)
pub fn set_friction(&mut self, value: f32)
Sourcepub fn damping_ratio(&self) -> f32
pub fn damping_ratio(&self) -> f32
Damping ratio
pub fn set_damping_ratio(&mut self, value: f32)
Sourcepub fn angular_frequency(&self) -> f32
pub fn angular_frequency(&self) -> f32
Angular frequency
pub fn set_angular_frequency(&mut self, value: f32)
Sourcepub fn break_threshold(&self) -> f32
pub fn break_threshold(&self) -> f32
Force threshold to break joint
pub fn set_break_threshold(&mut self, value: f32)
Sourcepub fn enable_shape(&self) -> u8
pub fn enable_shape(&self) -> u8
Enable shape constraint
pub fn set_enable_shape(&mut self, value: u8)
Trait Implementations§
Source§impl Debug for PhysicsJoint
impl Debug for PhysicsJoint
Source§impl Default for PhysicsJoint
impl Default for PhysicsJoint
Source§impl Drop for PhysicsJoint
impl Drop for PhysicsJoint
impl Send for PhysicsJoint
Auto Trait Implementations§
impl !Sync for PhysicsJoint
impl Freeze for PhysicsJoint
impl RefUnwindSafe for PhysicsJoint
impl Unpin for PhysicsJoint
impl UnsafeUnpin for PhysicsJoint
impl UnwindSafe for PhysicsJoint
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