pub struct InteractionTrackerInertiaStateEnteredArgs {
pub modified_resting_position: Option<Vector3>,
pub modified_resting_scale: Option<f32>,
pub natural_resting_position: Vector3,
pub natural_resting_scale: f32,
pub position_velocity_in_pixels_per_second: Vector3,
pub scale_velocity_in_percent_per_second: f32,
pub request_id: i32,
pub is_inertia_from_impulse: bool,
pub is_from_binding: bool,
}Expand description
The arguments of IInteractionTrackerOwner::inertia_state_entered.
Fields§
§modified_resting_position: Option<Vector3>The resting position after the inertia modifiers and the boundaries.
modified_resting_scale: Option<f32>The resting scale after the inertia modifiers and the boundaries.
natural_resting_position: Vector3The resting position of the natural decay of the velocity.
natural_resting_scale: f32The resting scale of the natural decay of the scale velocity.
position_velocity_in_pixels_per_second: Vector3§scale_velocity_in_percent_per_second: f32§request_id: i32§is_inertia_from_impulse: boolWhether the inertia comes from a TryUpdate*WithAdditionalVelocity
request rather than from the end of an interaction.
is_from_binding: boolAlways false: tracker binding is not ported.
Trait Implementations§
impl Copy for InteractionTrackerInertiaStateEnteredArgs
impl StructuralPartialEq for InteractionTrackerInertiaStateEnteredArgs
Auto Trait Implementations§
impl Freeze for InteractionTrackerInertiaStateEnteredArgs
impl RefUnwindSafe for InteractionTrackerInertiaStateEnteredArgs
impl Send for InteractionTrackerInertiaStateEnteredArgs
impl Sync for InteractionTrackerInertiaStateEnteredArgs
impl Unpin for InteractionTrackerInertiaStateEnteredArgs
impl UnsafeUnpin for InteractionTrackerInertiaStateEnteredArgs
impl UnwindSafe for InteractionTrackerInertiaStateEnteredArgs
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more