feat: solver improvements + release v0.29.0 (#876)
* feat: solver improvements * feat: add function to get/set whether gyroscopic forces are enabled on a rigid-body * chore: switch to released versions of parry and wide instead of local patches * fix cargo doc * chore: typo fixes * chore: clippy fix * Release v0.29.0 * chore: more clippy fixes
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::camera2d::OrbitCamera;
|
||||
#[cfg(feature = "dim3")]
|
||||
use crate::camera3d::OrbitCamera;
|
||||
use crate::settings::ExampleSettings;
|
||||
use crate::testbed::{RapierSolverType, RunMode, TestbedStateFlags};
|
||||
use crate::testbed::{RunMode, TestbedStateFlags};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Default, Clone)]
|
||||
@@ -13,22 +13,6 @@ pub struct SerializableTestbedState {
|
||||
pub selected_example: usize,
|
||||
pub selected_backend: usize,
|
||||
pub example_settings: ExampleSettings,
|
||||
pub solver_type: RapierSolverType,
|
||||
pub physx_use_two_friction_directions: bool,
|
||||
pub camera: OrbitCamera,
|
||||
}
|
||||
|
||||
#[cfg(feature = "dim2")]
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Default, Clone)]
|
||||
pub struct SerializableCameraState {
|
||||
pub zoom: f32,
|
||||
pub center: na::Point2<f32>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "dim3")]
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Default, Clone)]
|
||||
pub struct SerializableCameraState {
|
||||
pub distance: f32,
|
||||
pub position: na::Point3<f32>,
|
||||
pub center: na::Point3<f32>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user