feat: add PD and PID controller implementations (#804)
* feat: add a PID controller implementation * feat: add small rigid-body utilities + test interpolation test * fix: make scrolling weaker on macos * feat: add the option to use the PID controller in the character controller demo. * feat: add a stateless PD controller * feat(rapier_testbed): cleanup & support PidController in 2D too * chore: add comments for the PD and PID controllers * chore: update changelog * feat: rename PidErrors to PdErrors which is more accurate * fix cargo doc * chore: remove dead code * chore: make test module non-pub
This commit is contained in:
@@ -9,6 +9,9 @@ use bevy::prelude::*;
|
||||
use bevy::render::camera::Camera;
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
const LINE_TO_PIXEL_RATIO: f32 = 0.0005;
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
const LINE_TO_PIXEL_RATIO: f32 = 0.1;
|
||||
|
||||
#[derive(Component, PartialEq, Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user