Skip to main content

AccelerationVelocity

Struct AccelerationVelocity 

Source
pub struct AccelerationVelocity {
    pub linear_velocity: Vec3,
    pub linear_acceleration: Vec3,
    pub angular_velocity: Vec3,
    pub angular_acceleration: Vec3,
}
Expand description

Lineare und Winkelgeschwindigkeit sowie -beschleunigung im globalen Simulationskoordinatensystem.

Linear and angular velocity and acceleration in the global simulation frame.

Fields§

§linear_velocity: Vec3

Lineare Geschwindigkeit in m/s.

Linear velocity in m/s.

§linear_acceleration: Vec3

Lineare Beschleunigung in m/s².

Linear acceleration in m/s².

§angular_velocity: Vec3

Winkelgeschwindigkeit in rad/s.

Angular velocity in rad/s.

§angular_acceleration: Vec3

Winkelbeschleunigung in rad/s².

Angular acceleration in rad/s².

Implementations§

Source§

impl AccelerationVelocity

Source

pub fn from_rail_axle_local( longitudinal_velocity: f32, longitudinal_acceleration: f32, inv_radius: f32, lateral_derivation: f32, lateral_second_derivation: f32, elevation_derivation: f32, elevation_second_derivation: f32, axle_rotation: Quat, ) -> AccelerationVelocity

Erstellt achslokale Kinematik in LOTUS-Koordinaten (X = quer, Y = längs, Z = vertikal) und rotiert sie ins globale Simulationskoordinatensystem.

*_derivation-Werte sind Ableitungen bzgl. der Längswegstrecke (gleicher Parameter wie longitudinal_velocity): Gleiskrümmung über inv_radius plus optionale Unregelmäßigkeiten / Höhenneigungen (lateral_*, elevation_*).

Builds axle-local kinematics in LOTUS coordinates (X = lateral, Y = longitudinal, Z = vertical) and rotates them into the global simulation frame.

*_derivation values are derivatives w.r.t. longitudinal path distance (same parameter as longitudinal_velocity): track curvature via inv_radius, plus optional irregularity / elevation slopes (lateral_*, elevation_*).

Source

pub fn transform_axes_to_global(self, rotation: Quat) -> AccelerationVelocity

Rotiert Geschwindigkeits- und Beschleunigungsvektoren ins globale Koordinatensystem.

Rotates linear/angular velocity and acceleration vectors into the global frame.

Source

pub fn transform_axes_to_local(self, rotation: Quat) -> AccelerationVelocity

Rotiert Geschwindigkeits- und Beschleunigungsvektoren ins lokale Koordinatensystem.

Rotates linear/angular velocity and acceleration vectors into a local frame.

Source

pub fn average(self, other: AccelerationVelocity) -> AccelerationVelocity

Gibt den komponentenweisen Mittelwert zweier kinematischer Zustände zurück.

Returns the component-wise average of two kinematic states.

Source

pub fn relative_to_parent( self, parent: &AccelerationVelocity, position_relative_to_parent: Vec3, ) -> AccelerationVelocity

Kombiniert diesen lokalen kinematischen Zustand mit einem übergeordneten starren Körper.

Combines this local kinematic state with a parent rigid body.

Source

pub fn acceleration_at_local_point( self, local_offset: Vec3, ) -> LocalPointAcceleration

Lineare und Winkelbeschleunigung an einem festen Punkt local_offset (lokales Koordinatensystem der Animationseinheit), ausgedrückt im lokalen Koordinatensystem der Animationseinheit.

Enthält Euler- (α × r) und Zentripetal- (ω × (ω × r)) Anteile für starre Körperbewegung.

Linear and angular acceleration at a fixed point local_offset (animation-unit local frame), expressed in the animation-unit local frame.

Includes Euler (α × r) and centripetal (ω × (ω × r)) contributions for rigid-body motion.

Trait Implementations§

Source§

impl Clone for AccelerationVelocity

Source§

fn clone(&self) -> AccelerationVelocity

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AccelerationVelocity

Source§

impl Debug for AccelerationVelocity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for AccelerationVelocity

Source§

fn default() -> AccelerationVelocity

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AccelerationVelocity

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<AccelerationVelocity, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AccelerationVelocity

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.