Struct vtubestudio::data::SetCurrentModelPhysicsRequest
source · [−]pub struct SetCurrentModelPhysicsRequest {
pub strength_overrides: Vec<PhysicsOverride>,
pub wind_overrides: Vec<PhysicsOverride>,
}
Expand description
Overriding physics settings of currently loaded VTS model.
If the user has turned off physics for the currently loaded model, you cannot turn physics on using this API. You can only use this API to override physics/wind base values and multipliers.
Generally, the values set using this API are used to override the values set by the
user in the app. They’re not actually shown to the user on the UI and are not saved.
Override values set using this API are automatically unset when their timer runs out
(the value you set using override_seconds
). If you want to keep overriding values,
you have to repeatedly send this request.
When all timers run out, the API will no longer consider your plugin as controlling the physics system so another plugin could start controlling the physics system.
This request returns SetCurrentModelPhysicsResponse
.
Fields
strength_overrides: Vec<PhysicsOverride>
Strength overrides.
wind_overrides: Vec<PhysicsOverride>
Wind overrides.
Trait Implementations
sourceimpl Clone for SetCurrentModelPhysicsRequest
impl Clone for SetCurrentModelPhysicsRequest
sourcefn clone(&self) -> SetCurrentModelPhysicsRequest
fn clone(&self) -> SetCurrentModelPhysicsRequest
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for SetCurrentModelPhysicsRequest
impl Debug for SetCurrentModelPhysicsRequest
sourceimpl Default for SetCurrentModelPhysicsRequest
impl Default for SetCurrentModelPhysicsRequest
sourcefn default() -> SetCurrentModelPhysicsRequest
fn default() -> SetCurrentModelPhysicsRequest
sourceimpl<'de> Deserialize<'de> for SetCurrentModelPhysicsRequest
impl<'de> Deserialize<'de> for SetCurrentModelPhysicsRequest
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>,
sourceimpl PartialEq<SetCurrentModelPhysicsRequest> for SetCurrentModelPhysicsRequest
impl PartialEq<SetCurrentModelPhysicsRequest> for SetCurrentModelPhysicsRequest
sourcefn eq(&self, other: &SetCurrentModelPhysicsRequest) -> bool
fn eq(&self, other: &SetCurrentModelPhysicsRequest) -> bool
sourceimpl Request for SetCurrentModelPhysicsRequest
impl Request for SetCurrentModelPhysicsRequest
type Response = SetCurrentModelPhysicsResponse
type Response = SetCurrentModelPhysicsResponse
Response
type for this request.