Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed May 14, 2024
1 parent 683e127 commit 463c157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/rolt/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ pub use glam::{DVec3, Mat4, Quat, Vec3, Vec4};

use crate::{FromJolt, IntoJolt};

/// Represents a world-space vector, which can use either `f32` or `f64`.
///
/// Because the `double-precision` feature is enabled, this uses `f64`.
#[cfg(feature = "double-precision")]
pub type RVec3 = DVec3;

/// Represents a world-space vector, which can use either `f32` or `f64`.
///
/// Because the `double-precision` feature is NOT enabled, this uses `f32`.
#[cfg(not(feature = "double-precision"))]
pub type RVec3 = Vec3;

Expand Down
1 change: 1 addition & 0 deletions crates/rolt/src/narrow_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub struct RayCastArgs {
pub body_filter: Option<BodyFilterImpl>,
}

/// The result of calling [`NarrowPhaseQuery::cast_ray`].
#[derive(Debug, Clone, Copy)]
pub struct RayCastResult {
pub body_id: BodyId,
Expand Down

0 comments on commit 463c157

Please sign in to comment.