Skip to content

Commit

Permalink
Fix double-precision compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Oct 24, 2024
1 parent a2a5b11 commit 6a66269
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use joltc_sys::*;

use rolt::{
BroadPhaseLayer, BroadPhaseLayerInterface, CastShapeArgs, CastShapeCollectorImpl,
ClosestHitCastShapeCollector, IntoJolt, IntoRolt, ObjectLayer, ObjectLayerPairFilter,
ObjectVsBroadPhaseLayerFilter, RShapeCast, Vec3,
ClosestHitCastShapeCollector, IntoJolt, ObjectLayer, ObjectLayerPairFilter,
ObjectVsBroadPhaseLayerFilter, RShapeCast, RVec3, Vec3,
};

const OL_NON_MOVING: JPC_ObjectLayer = 0;
Expand Down Expand Up @@ -158,10 +158,10 @@ fn main() {
shapecast: RShapeCast {
shape: sphere_shape,
scale: Vec3::ONE,
center_of_mass_start: rmat44_translation(Vec3::new(-5.0, 0.0, 0.0).into_jolt()),
center_of_mass_start: rmat44_translation(RVec3::new(-5.0, 0.0, 0.0).into_jolt()),
direction: Vec3::new(10.0, 0.0, 0.0),
},
base_offset: Vec3::ZERO,
base_offset: RVec3::ZERO,
settings: Default::default(),
collector: Some(CastShapeCollectorImpl::new_borrowed(&mut collector)),
broad_phase_layer_filter: None,
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 @@ -165,6 +165,7 @@ impl<'physics_system> NarrowPhaseQuery<'physics_system> {
ObjectLayerFilter: args.object_layer_filter.as_ref().into_jolt(),
BodyFilter: args.body_filter.as_ref().into_jolt(),
// const JPC_ShapeFilter *ShapeFilter;
..mem::zeroed()
};

JPC_NarrowPhaseQuery_CastShape(self.raw, &mut raw_args);
Expand Down

0 comments on commit 6a66269

Please sign in to comment.