#[repr(C)]pub struct ConstraintDescriptorRecord {Show 57 fields
pub kind: u32,
pub first_body_id: u32,
pub second_body_id: u32,
pub flags: u32,
pub anchor_a: [f32; 3],
pub _pad1: f32,
pub anchor_b: [f32; 3],
pub _pad2: f32,
pub axis_a: [f32; 3],
pub _pad3: f32,
pub axis_b: [f32; 3],
pub _pad4: f32,
pub distance: f32,
pub limit_min: f32,
pub limit_max: f32,
pub swing_a: f32,
pub swing_b: f32,
pub motor_speed: f32,
pub motor_max_force: f32,
pub spring_frequency: f32,
pub spring_damping_ratio: f32,
pub break_force: f32,
pub break_torque: f32,
pub gear_ratio: f32,
pub pulley_fixed_a: [f32; 3],
pub _pad_pulley_a: f32,
pub pulley_fixed_b: [f32; 3],
pub _pad_pulley_b: f32,
pub motor_target: f32,
pub motor_stiffness: f32,
pub motor_damping: f32,
pub cone_angle: f32,
pub reference: [f32; 4],
pub linear_limit_min: [f32; 3],
pub _pad_lim_min: f32,
pub linear_limit_max: [f32; 3],
pub _pad_lim_max: f32,
pub angular_limit_min: [f32; 3],
pub _pad_ang_min: f32,
pub angular_limit_max: [f32; 3],
pub _pad_ang_max: f32,
pub linear_motor_target: [f32; 3],
pub _pad_lin_target: f32,
pub linear_motor_stiffness: [f32; 3],
pub _pad_lin_stiff: f32,
pub linear_motor_damping: [f32; 3],
pub _pad_lin_damp: f32,
pub angular_motor_target: [f32; 3],
pub _pad_ang_target: f32,
pub angular_motor_stiffness: [f32; 3],
pub _pad_ang_stiff: f32,
pub angular_motor_damping: [f32; 3],
pub _pad_ang_damp: f32,
pub linear_motor_force: [f32; 3],
pub _pad_lin_force: f32,
pub angular_motor_force: [f32; 3],
pub _pad_ang_force: f32,
}Fields§
§kind: u32§first_body_id: u32§second_body_id: u32§flags: u32§anchor_a: [f32; 3]§_pad1: f32§anchor_b: [f32; 3]§_pad2: f32§axis_a: [f32; 3]§_pad3: f32§axis_b: [f32; 3]§_pad4: f32§distance: f32§limit_min: f32§limit_max: f32§swing_a: f32§swing_b: f32§motor_speed: f32§motor_max_force: f32§spring_frequency: f32§spring_damping_ratio: f32§break_force: f32§break_torque: f32§gear_ratio: f32§pulley_fixed_a: [f32; 3]§_pad_pulley_a: f32§pulley_fixed_b: [f32; 3]§_pad_pulley_b: f32§motor_target: f32§motor_stiffness: f32§motor_damping: f32§cone_angle: f32§reference: [f32; 4]§linear_limit_min: [f32; 3]§_pad_lim_min: f32§linear_limit_max: [f32; 3]§_pad_lim_max: f32§angular_limit_min: [f32; 3]§_pad_ang_min: f32§angular_limit_max: [f32; 3]§_pad_ang_max: f32§linear_motor_target: [f32; 3]§_pad_lin_target: f32§linear_motor_stiffness: [f32; 3]§_pad_lin_stiff: f32§linear_motor_damping: [f32; 3]§_pad_lin_damp: f32§angular_motor_target: [f32; 3]§_pad_ang_target: f32§angular_motor_stiffness: [f32; 3]§_pad_ang_stiff: f32§angular_motor_damping: [f32; 3]§_pad_ang_damp: f32§linear_motor_force: [f32; 3]§_pad_lin_force: f32§angular_motor_force: [f32; 3]§_pad_ang_force: f32Implementations§
Source§impl ConstraintDescriptorRecord
impl ConstraintDescriptorRecord
pub fn build( desc: &ConstraintDesc, first_body_id: u32, second_body_id: u32, ) -> Self
Source§impl ConstraintDescriptorRecord
impl ConstraintDescriptorRecord
pub fn constraint_kind(&self) -> ConstraintKind
Trait Implementations§
Source§impl Clone for ConstraintDescriptorRecord
impl Clone for ConstraintDescriptorRecord
Source§fn clone(&self) -> ConstraintDescriptorRecord
fn clone(&self) -> ConstraintDescriptorRecord
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 ConstraintDescriptorRecord
Source§impl Debug for ConstraintDescriptorRecord
impl Debug for ConstraintDescriptorRecord
impl Pod for ConstraintDescriptorRecord
impl StructuralPartialEq for ConstraintDescriptorRecord
Auto Trait Implementations§
impl Freeze for ConstraintDescriptorRecord
impl RefUnwindSafe for ConstraintDescriptorRecord
impl Send for ConstraintDescriptorRecord
impl Sync for ConstraintDescriptorRecord
impl Unpin for ConstraintDescriptorRecord
impl UnsafeUnpin for ConstraintDescriptorRecord
impl UnwindSafe for ConstraintDescriptorRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.