pub struct SoftJointLimit {
pub bounciness: f32,
pub limit: f32,
pub contactDistance: Option<f32>,
pub damper: Option<f32>,
pub spring: Option<f32>,
}Expand description
SoftJointLimit is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: The limits defined by the CharacterJoint.
Fields§
§bounciness: f32When the joint hits the limit, it can be made to bounce off it.
limit: f32The limit position/angle of the joint (in degrees).
contactDistance: Option<f32>Determines how far ahead in space the solver can “see” the joint limit. f32: (5.0.0f4 - 2022.3.2f1)
damper: Option<f32>f32: (3.4.0 - 4.7.2)
spring: Option<f32>f32: (3.4.0 - 4.7.2)
Trait Implementations§
Source§impl Debug for SoftJointLimit
impl Debug for SoftJointLimit
Source§impl<'de> Deserialize<'de> for SoftJointLimit
impl<'de> Deserialize<'de> for SoftJointLimit
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 SoftJointLimit
impl RefUnwindSafe for SoftJointLimit
impl Send for SoftJointLimit
impl Sync for SoftJointLimit
impl Unpin for SoftJointLimit
impl UnwindSafe for SoftJointLimit
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