pub struct ScheduledScratchHandControl {
pub absolute_frame: u64,
pub pointer_id: u64,
pub hand_contact: bool,
pub hand_target_angle_rad: Option<f64>,
pub hand_target_angular_velocity_rad_s: f64,
pub hand_normal_force_n: f64,
pub hand_contact_radius_m: f64,
pub raw_pointer_angular_velocity_rad_s: f64,
pub velocity_was_limited: bool,
pub wrap_was_ambiguous: bool,
pub added_late_shift_frames: u64,
pub total_late_shift_frames: u64,
}Expand description
Contains one hand control that is ready for the player timeline.
Fields§
§absolute_frame: u64§pointer_id: u64§hand_contact: bool§hand_target_angle_rad: Option<f64>§hand_target_angular_velocity_rad_s: f64§hand_normal_force_n: f64§hand_contact_radius_m: f64§raw_pointer_angular_velocity_rad_s: f64§velocity_was_limited: bool§wrap_was_ambiguous: bool§added_late_shift_frames: u64§total_late_shift_frames: u64Implementations§
Source§impl ScheduledScratchHandControl
impl ScheduledScratchHandControl
Sourcepub fn merge(self, sequence: u64, control: PlayerControl) -> TimedPlayerControl
pub fn merge(self, sequence: u64, control: PlayerControl) -> TimedPlayerControl
Replaces only the hand fields in a complete player control.
Sourcepub fn merge_deck(self, control: DeckMechanicalControl) -> DeckMechanicalControl
pub fn merge_deck(self, control: DeckMechanicalControl) -> DeckMechanicalControl
Replaces only the hand fields in a deck control.
Trait Implementations§
Source§impl Clone for ScheduledScratchHandControl
impl Clone for ScheduledScratchHandControl
Source§fn clone(&self) -> ScheduledScratchHandControl
fn clone(&self) -> ScheduledScratchHandControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScheduledScratchHandControl
Source§impl Debug for ScheduledScratchHandControl
impl Debug for ScheduledScratchHandControl
Source§impl<'de> Deserialize<'de> for ScheduledScratchHandControl
impl<'de> Deserialize<'de> for ScheduledScratchHandControl
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
impl StructuralPartialEq for ScheduledScratchHandControl
Auto Trait Implementations§
impl Freeze for ScheduledScratchHandControl
impl RefUnwindSafe for ScheduledScratchHandControl
impl Send for ScheduledScratchHandControl
impl Sync for ScheduledScratchHandControl
impl Unpin for ScheduledScratchHandControl
impl UnsafeUnpin for ScheduledScratchHandControl
impl UnwindSafe for ScheduledScratchHandControl
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