pub struct SoftJointLimitSpring {
pub damper: f32,
pub spring: f32,
}Expand description
SoftJointLimitSpring is a sub class of the Unity engine since version 5.0.0f4. Exert from Unity’s scripting documentation: The configuration of the spring attached to the joint’s limits: linear and angular. Used by CharacterJoint and ConfigurableJoint.
Fields§
§damper: f32The damping of the spring limit. In effect when the stiffness of the sprint limit is not zero.
spring: f32The stiffness of the spring limit. When stiffness is zero the limit is hard, otherwise soft.
Trait Implementations§
Source§impl Debug for SoftJointLimitSpring
impl Debug for SoftJointLimitSpring
Source§impl<'de> Deserialize<'de> for SoftJointLimitSpring
impl<'de> Deserialize<'de> for SoftJointLimitSpring
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 SoftJointLimitSpring
impl RefUnwindSafe for SoftJointLimitSpring
impl Send for SoftJointLimitSpring
impl Sync for SoftJointLimitSpring
impl Unpin for SoftJointLimitSpring
impl UnwindSafe for SoftJointLimitSpring
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