pub struct SphericalJointDef {Show 13 fields
pub base: JointDef,
pub enable_spring: bool,
pub hertz: f32,
pub damping_ratio: f32,
pub target_rotation: Quat,
pub enable_cone_limit: bool,
pub cone_angle: f32,
pub enable_twist_limit: bool,
pub lower_twist_angle: f32,
pub upper_twist_angle: f32,
pub enable_motor: bool,
pub max_motor_torque: f32,
pub motor_velocity: Vec3,
}Expand description
Spherical joint: point constraint allowing free rotation. (b3SphericalJointDef)
Fields§
§base: JointDef§enable_spring: bool§hertz: f32§damping_ratio: f32§target_rotation: Quat§enable_cone_limit: bool§cone_angle: f32§enable_twist_limit: bool§lower_twist_angle: f32§upper_twist_angle: f32§enable_motor: bool§max_motor_torque: f32§motor_velocity: Vec3Trait Implementations§
Source§impl Clone for SphericalJointDef
impl Clone for SphericalJointDef
Source§fn clone(&self) -> SphericalJointDef
fn clone(&self) -> SphericalJointDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SphericalJointDef
Source§impl Debug for SphericalJointDef
impl Debug for SphericalJointDef
Source§impl Default for SphericalJointDef
impl Default for SphericalJointDef
Source§impl PartialEq for SphericalJointDef
impl PartialEq for SphericalJointDef
impl StructuralPartialEq for SphericalJointDef
Auto Trait Implementations§
impl Freeze for SphericalJointDef
impl RefUnwindSafe for SphericalJointDef
impl Send for SphericalJointDef
impl Sync for SphericalJointDef
impl Unpin for SphericalJointDef
impl UnsafeUnpin for SphericalJointDef
impl UnwindSafe for SphericalJointDef
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