pub struct SpringForce {
pub coefficient: f32,
pub saturation: f32,
pub offset: f32,
}Expand description
Rückstellkraft einer Achse.
Restoring force of an axis.
coefficient und saturation sind unbeschränkte endliche Stärken.
Der Nennbereich ist 0..=1. Die Engine multipliziert mit der Geräte-Intensität
und klemmt erst danach auf 0..=1.
offset verschiebt die Federmitte und wird danach auf -1..=1 geklemmt, ohne Skalierung.
0 lässt die Federmitte unverändert.
coefficient and saturation are unrestricted finite strengths.
The nominal range is 0..=1. The engine multiplies by the device intensity
and only then clamps to 0..=1.
offset shifts the spring center and is then clamped to -1..=1, without scaling.
0 leaves the spring center unchanged.
Fields§
§coefficient: f32Steifigkeit der Feder.
Spring stiffness.
saturation: f32Obere Grenze der Kraft.
Upper bound of the force.
offset: f32Verschiebung der Federmitte.
Shift of the spring center.
Trait Implementations§
Source§impl Clone for SpringForce
impl Clone for SpringForce
Source§fn clone(&self) -> SpringForce
fn clone(&self) -> SpringForce
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more