pub struct JointDrive {
pub maximumForce: f32,
pub positionDamper: f32,
pub positionSpring: f32,
pub mode: Option<i32>,
pub useAcceleration: Option<i32>,
}Expand description
JointDrive is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: How the joint’s movement will behave along its local X axis.
Fields§
§maximumForce: f32Amount of force applied to push the object toward the defined direction.
positionDamper: f32Resistance strength against the Position Spring. Only used if mode includes Position.
positionSpring: f32Strength of a rubber-band pull toward the defined direction. Only used if mode includes Position.
mode: Option<i32>i32: (3.4.0 - 5.2.5f1)
useAcceleration: Option<i32>Defines whether the drive is an acceleration drive or a force drive. i32: (2022.2.0b1 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for JointDrive
impl Debug for JointDrive
Source§impl<'de> Deserialize<'de> for JointDrive
impl<'de> Deserialize<'de> for JointDrive
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JointDrive
impl RefUnwindSafe for JointDrive
impl Send for JointDrive
impl Sync for JointDrive
impl Unpin for JointDrive
impl UnwindSafe for JointDrive
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