pub struct VRMSecondaryAnimationSpring {
pub bones: Option<Vec<Index<Node>>>,
pub center: Option<Index<Node>>,
pub collider_groups: Option<Vec<i64>>,
pub comment: Option<String>,
pub drag_force: Option<f64>,
pub gravity_dir: Option<GravityDir>,
pub gravity_power: Option<f64>,
pub hit_radius: Option<f64>,
pub stiffiness: Option<f64>,
}Fields§
§bones: Option<Vec<Index<Node>>>Specify the node index of the root bone of the swaying object.
center: Option<Index<Node>>The reference point of a swaying object can be set at any location except the origin. When implementing UI moving with warp, the parent node to move with warp can be specified if you don’t want to make the object swaying with warp movement.
collider_groups: Option<Vec<i64>>Specify the index of the collider group for collisions with swaying objects.
comment: Option<String>Annotation comment
drag_force: Option<f64>The resistance (deceleration) of automatic animation.
gravity_dir: Option<GravityDir>The direction of gravity. Set (0, -1, 0) for simulating the gravity. Set (1, 0, 0) for simulating the wind.
gravity_power: Option<f64>The strength of gravity.
hit_radius: Option<f64>The radius of the sphere used for the collision detection with colliders.
stiffiness: Option<f64>The resilience of the swaying object (the power of returning to the initial pose).
Trait Implementations§
Source§impl Clone for VRMSecondaryAnimationSpring
impl Clone for VRMSecondaryAnimationSpring
Source§fn clone(&self) -> VRMSecondaryAnimationSpring
fn clone(&self) -> VRMSecondaryAnimationSpring
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VRMSecondaryAnimationSpring
impl Debug for VRMSecondaryAnimationSpring
Source§impl<'de> Deserialize<'de> for VRMSecondaryAnimationSpring
impl<'de> Deserialize<'de> for VRMSecondaryAnimationSpring
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 VRMSecondaryAnimationSpring
impl RefUnwindSafe for VRMSecondaryAnimationSpring
impl Send for VRMSecondaryAnimationSpring
impl Sync for VRMSecondaryAnimationSpring
impl Unpin for VRMSecondaryAnimationSpring
impl UnsafeUnpin for VRMSecondaryAnimationSpring
impl UnwindSafe for VRMSecondaryAnimationSpring
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