pub struct SphericalJoint {Show 29 fields
pub linear_impulse: Vec3,
pub spring_impulse: Vec3,
pub motor_impulse: Vec3,
pub lower_twist_impulse: f32,
pub upper_twist_impulse: f32,
pub swing_impulse: f32,
pub hertz: f32,
pub damping_ratio: f32,
pub max_motor_torque: f32,
pub motor_velocity: Vec3,
pub lower_twist_angle: f32,
pub upper_twist_angle: f32,
pub cone_angle: f32,
pub target_rotation: Quat,
pub index_a: i32,
pub index_b: i32,
pub frame_a: Transform,
pub frame_b: Transform,
pub delta_center: Vec3,
pub swing_axis: Vec3,
pub twist_jacobian: Vec3,
pub rotation_mass: Matrix3,
pub swing_mass: f32,
pub twist_mass: f32,
pub spring_softness: Softness,
pub enable_spring: bool,
pub enable_motor: bool,
pub enable_cone_limit: bool,
pub enable_twist_limit: bool,
}Expand description
(b3SphericalJoint)
Fields§
§linear_impulse: Vec3§spring_impulse: Vec3§motor_impulse: Vec3§lower_twist_impulse: f32§upper_twist_impulse: f32§swing_impulse: f32§hertz: f32§damping_ratio: f32§max_motor_torque: f32§motor_velocity: Vec3§lower_twist_angle: f32§upper_twist_angle: f32§cone_angle: f32§target_rotation: Quat§index_a: i32§index_b: i32§frame_a: Transform§frame_b: Transform§delta_center: Vec3§swing_axis: Vec3§twist_jacobian: Vec3§rotation_mass: Matrix3§swing_mass: f32§twist_mass: f32§spring_softness: Softness§enable_spring: bool§enable_motor: bool§enable_cone_limit: bool§enable_twist_limit: boolTrait Implementations§
Source§impl Clone for SphericalJoint
impl Clone for SphericalJoint
Source§fn clone(&self) -> SphericalJoint
fn clone(&self) -> SphericalJoint
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 SphericalJoint
Source§impl Debug for SphericalJoint
impl Debug for SphericalJoint
Source§impl Default for SphericalJoint
impl Default for SphericalJoint
Source§impl PartialEq for SphericalJoint
impl PartialEq for SphericalJoint
impl StructuralPartialEq for SphericalJoint
Auto Trait Implementations§
impl Freeze for SphericalJoint
impl RefUnwindSafe for SphericalJoint
impl Send for SphericalJoint
impl Sync for SphericalJoint
impl Unpin for SphericalJoint
impl UnsafeUnpin for SphericalJoint
impl UnwindSafe for SphericalJoint
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