Struct vtubestudio::data::PhysicsOverride
source · [−]pub struct PhysicsOverride {
pub id: String,
pub value: f64,
pub set_base_value: bool,
pub override_seconds: f64,
}
Expand description
Used in SetCurrentModelPhysicsRequest
.
Fields
id: String
Group ID of the physics override.
This is only relevant if set_base_value
is false
.
value: f64
The physics override value.
If set_base_value
is true
, this should be an integer between 0 and
100. If set_base_value
is false
, this should be a floating point
value between 0 and 2.
set_base_value: bool
Whether this override should set the base value for the entire model.
If true
, sets base value (id
can be omitted). If false
, sets
multiplier value for the specific group ID.
override_seconds: f64
How long the physics should be overridden for.
Values outside the range of 0.5 and 5 will be clamped.
Trait Implementations
sourceimpl Clone for PhysicsOverride
impl Clone for PhysicsOverride
sourcefn clone(&self) -> PhysicsOverride
fn clone(&self) -> PhysicsOverride
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PhysicsOverride
impl Debug for PhysicsOverride
sourceimpl Default for PhysicsOverride
impl Default for PhysicsOverride
sourcefn default() -> PhysicsOverride
fn default() -> PhysicsOverride
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PhysicsOverride
impl<'de> Deserialize<'de> for PhysicsOverride
sourcefn 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
sourceimpl PartialEq<PhysicsOverride> for PhysicsOverride
impl PartialEq<PhysicsOverride> for PhysicsOverride
sourcefn eq(&self, other: &PhysicsOverride) -> bool
fn eq(&self, other: &PhysicsOverride) -> bool
sourceimpl Serialize for PhysicsOverride
impl Serialize for PhysicsOverride
impl StructuralPartialEq for PhysicsOverride
Auto Trait Implementations
impl RefUnwindSafe for PhysicsOverride
impl Send for PhysicsOverride
impl Sync for PhysicsOverride
impl Unpin for PhysicsOverride
impl UnwindSafe for PhysicsOverride
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more