Skip to main content

ConstraintDescriptorRecord

Struct ConstraintDescriptorRecord 

Source
#[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: f32

Implementations§

Source§

impl ConstraintDescriptorRecord

Source

pub fn build( desc: &ConstraintDesc, first_body_id: u32, second_body_id: u32, ) -> Self

Source§

impl ConstraintDescriptorRecord

Trait Implementations§

Source§

impl Clone for ConstraintDescriptorRecord

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for ConstraintDescriptorRecord

Source§

impl Debug for ConstraintDescriptorRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ConstraintDescriptorRecord

Source§

fn eq(&self, other: &ConstraintDescriptorRecord) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Pod for ConstraintDescriptorRecord

Source§

impl StreamRecord for ConstraintDescriptorRecord

Source§

const WGSL: &'static str = "ConstraintDescriptor"

Source§

impl StructuralPartialEq for ConstraintDescriptorRecord

Source§

impl Zeroable for ConstraintDescriptorRecord

Source§

fn zeroed() -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

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

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.