pub struct GetCurrentModelPhysicsResponse {
    pub model_loaded: bool,
    pub model_name: String,
    pub model_id: String,
    pub model_has_physics: bool,
    pub physics_switched_on: bool,
    pub using_legacy_physics: bool,
    pub physics_fps_setting: i32,
    pub base_strength: i32,
    pub base_wind: i32,
    pub api_physics_override_active: bool,
    pub api_physics_override_plugin_name: String,
    pub physics_groups: Vec<PhysicsGroup>,
}
Expand description

Data about the requested physics settings.

This is the return value of GetCurrentModelPhysicsRequest.

Fields

model_loaded: bool

Whether the model is loaded.

If no model is loaded, this will be false. All other values do not have any significance in that case and the physics_groups array will be empty.

model_name: String

The name of the model.

model_id: String

The ID of the model.

model_has_physics: bool

Whether the model has physics.

If a model is loaded, this field will tell you whether or not the model has a valid physics setup. Some models don’t have physics set up or have a broken physics file which will cause the physics system to not start correctly.

physics_switched_on: bool

Whether physics is enabled.

This will be true if the “Use Physics” toggle has been activated for this model by the user in VTube Studio.

using_legacy_physics: bool

Whether legacy physics is enabled.

This corresponds to the “Legacy Physics” toggle in the VTube Studio UI.

physics_fps_setting: i32

The physics FPS setting for this model.

Can be 30, 60, 120, or -1, which indicates that the user has selected “Use same FPS as app” in the UI.

base_strength: i32

Base physics strength for this model (between 0 and 100, default 50).

base_wind: i32

Base wind strength for this model (between 0 and 100, default 0).

api_physics_override_active: bool

Whether a plugin is currently overriding the physics settings of this model.

api_physics_override_plugin_name: String

The name of the plugin that is currently overriding physics settings, if any.

physics_groups: Vec<PhysicsGroup>

Physics groups for this model.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more