Skip to content

Commit 28e64f3

Browse files
committed
Fix math types in bvh example
1 parent ce6c1c5 commit 28e64f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/avian3d/examples/bvh.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn main() {
8686
app.run();
8787
}
8888

89-
const PARTICLE_RADIUS: Scalar = 7.0;
89+
const PARTICLE_RADIUS: f32 = 7.0;
9090

9191
/// Settings for the BVH example.
9292
#[derive(Resource)]
@@ -168,7 +168,8 @@ fn move_random(mut query: Query<&mut Position>, settings: Res<BvhExampleSettings
168168
..PARTICLE_RADIUS * settings.delta_fraction,
169169
),
170170
0.0,
171-
);
171+
)
172+
.adjust_precision();
172173
}
173174
}
174175
}

0 commit comments

Comments
 (0)