D6Joint

Enum D6Joint 

Source
#[repr(u32)]
pub enum D6Joint {
Show 43 variants Entity1 = 0, Entity2 = 1, RelativePosition1 = 2, RelativeOrientation1 = 3, RelativePosition2 = 4, RelativeOrientation2 = 5, BreakForce = 6, BreakTorque = 7, IsBroken = 8, ProjectionLinearTolerance = 9, ProjectionAngularTolerance = 10, RelativePosition = 11, RelativeRotation = 12, RelativeAngles = 13, MotionX = 14, MotionY = 15, MotionZ = 16, MotionTwist = 17, MotionSwing1 = 18, MotionSwing2 = 19, LinearLimit = 20, LinearLimitSpring = 21, LinearLimitType = 22, TwistLimit = 23, TwistLimitSpring = 24, TwistLimitType = 25, SwingLimit = 26, SwingLimitSpring = 27, SwingLimitType = 28, DriveEnabled = 29, DrivePosition = 30, DriveRotation = 31, DriveLinearVelocity = 32, DriveAngularVelocity = 33, DriveParamsX = 34, DriveParamsY = 35, DriveParamsZ = 36, DriveParamsSwing = 37, DriveParamsTwist = 38, DriveParamsSLERP = 39, DriveIsAcceleration = 40, LinearForce = 41, AngularForce = 42,
}

Variants§

§

Entity1 = 0

‘EntityHandle’

§

Entity2 = 1

‘EntityHandle’

§

RelativePosition1 = 2

‘Vec3’

§

RelativeOrientation1 = 3

‘Quat’

§

RelativePosition2 = 4

‘Vec3’

§

RelativeOrientation2 = 5

‘Quat’

§

BreakForce = 6

‘f32’

§

BreakTorque = 7

‘f32’

§

IsBroken = 8

‘bool’

§

ProjectionLinearTolerance = 9

‘f32’

§

ProjectionAngularTolerance = 10

‘f32’

§

RelativePosition = 11

‘Vec3’

§

RelativeRotation = 12

‘Quat’

§

RelativeAngles = 13

‘Vec3’

§

MotionX = 14

‘D6MotionType’ for each of the six axes

§

MotionY = 15

§

MotionZ = 16

§

MotionTwist = 17

§

MotionSwing1 = 18

§

MotionSwing2 = 19

§

LinearLimit = 20

‘Vec2’

§

LinearLimitSpring = 21

‘Vec2’

§

LinearLimitType = 22

‘JointLimitType’

§

TwistLimit = 23

’Vec2`

§

TwistLimitSpring = 24

’Vec2`

§

TwistLimitType = 25

’JointLimitType`

§

SwingLimit = 26

‘Vec2’

§

SwingLimitSpring = 27

’Vec2`

§

SwingLimitType = 28

’JointLimitType`

§

DriveEnabled = 29

‘bool’

§

DrivePosition = 30

‘Vec3’

§

DriveRotation = 31

§

DriveLinearVelocity = 32

§

DriveAngularVelocity = 33

§

DriveParamsX = 34

‘Vec4’ (stiffness, damping, forcelimit)

§

DriveParamsY = 35

§

DriveParamsZ = 36

§

DriveParamsSwing = 37

§

DriveParamsTwist = 38

§

DriveParamsSLERP = 39

§

DriveIsAcceleration = 40

‘bool’

§

LinearForce = 41

‘Vec3’

§

AngularForce = 42

‘Vec3’

Trait Implementations§

Source§

impl CheckedBitPattern for D6Joint

Source§

type Bits = u32

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: &Self::Bits) -> bool

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

impl Clone for D6Joint

Source§

fn clone(&self) -> D6Joint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for D6Joint

Source§

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

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

impl From<D6Joint> for u32

Source§

fn from(enum_value: D6Joint) -> Self

Converts to this type from the input type.
Source§

impl Hash for D6Joint

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for D6Joint

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for D6Joint

Source§

type Error = TryFromPrimitiveError<D6Joint>

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

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for D6Joint

Source§

const NAME: &'static str = "D6Joint"

Source§

type Primitive = u32

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Copy for D6Joint

Source§

impl Eq for D6Joint

Source§

impl NoUninit for D6Joint

Source§

impl StructuralPartialEq for D6Joint

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> 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> 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.