aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-10-05 16:51:50 +0200
committerCrozet Sébastien <developer@crozet.re>2020-10-05 16:52:09 +0200
commit2d0a888484dd296cc785caf978252dd97b58e10a (patch)
treeae7128730df96ec29cbe402dc67f3228a100f00f /src
parentbbfe926a11fdf4f4eb0ddbac0c777a202e07d269 (diff)
downloadrapier-2d0a888484dd296cc785caf978252dd97b58e10a.tar.gz
rapier-2d0a888484dd296cc785caf978252dd97b58e10a.tar.bz2
rapier-2d0a888484dd296cc785caf978252dd97b58e10a.zip
Make the query pipeline serializable.
Diffstat (limited to 'src')
-rw-r--r--src/dynamics/integration_parameters.rs2
-rw-r--r--src/pipeline/query_pipeline.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/dynamics/integration_parameters.rs b/src/dynamics/integration_parameters.rs
index faf22e1..b31c3f6 100644
--- a/src/dynamics/integration_parameters.rs
+++ b/src/dynamics/integration_parameters.rs
@@ -2,7 +2,7 @@
#[derive(Clone)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
pub struct IntegrationParameters {
- /// The timestep (default: `1.0 / 60.0`)
+ /// The timestep length (default: `1.0 / 60.0`)
dt: f32,
/// The inverse of `dt`.
inv_dt: f32,
diff --git a/src/pipeline/query_pipeline.rs b/src/pipeline/query_pipeline.rs
index 1a37ad8..ce4e063 100644
--- a/src/pipeline/query_pipeline.rs
+++ b/src/pipeline/query_pipeline.rs
@@ -6,6 +6,7 @@ use crate::math::{Point, Vector};
use ncollide::bounding_volume::BoundingVolume;
/// A pipeline for performing queries on all the colliders of a scene.
+#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
pub struct QueryPipeline {
quadtree: WQuadtree,
tree_built: bool,
@@ -65,7 +66,7 @@ impl QueryPipeline {
// let t0 = instant::now();
let inter = self.quadtree.cast_ray(ray, max_toi);
// println!(
- // "Found {} interefrences in time {}.",
+ // "Found {} interferences in time {}.",
// inter.len(),
// instant::now() - t0
// );