pub struct JointSpring {
pub damper: f32,
pub spring: f32,
pub targetPosition: f32,
}Expand description
JointSpring is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: JointSpring is used add a spring force to HingeJoint and PhysicMaterial.
Fields§
§damper: f32The damper force uses to dampen the spring.
spring: f32The spring forces used to reach the target position.
targetPosition: f32The target position the joint attempts to reach.
Trait Implementations§
Source§impl Debug for JointSpring
impl Debug for JointSpring
Source§impl<'de> Deserialize<'de> for JointSpring
impl<'de> Deserialize<'de> for JointSpring
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 JointSpring
impl RefUnwindSafe for JointSpring
impl Send for JointSpring
impl Sync for JointSpring
impl Unpin for JointSpring
impl UnwindSafe for JointSpring
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