File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 55//! a [Bounding Volume Hierarchy (BVH)][BVH], which accelerates querying for [AABB](crate::collision::collider::ColliderAabb)
66//! overlaps, ray intersections, and more.
77//!
8- //! Colliders of dynamic, kinematic, and static bodies are all stored in a separate [`ColliderTree`](ColliderTree)
8+ //! Colliders of dynamic, kinematic, and static bodies are all stored in a separate [`ColliderTree`]
99//! to allow efficiently querying for specific subsets of colliders and to optimize tree updates based on body type.
1010//! Trees for dynamic and kinematic bodies are rebuilt every physics step, while the static tree is incrementally updated
1111//! when static colliders are added, removed, or modified. The trees are stored in the [`ColliderTrees`] resource.
1919//! and for broad phase collision detection, consider using the [`BvhBroadPhasePlugin`].
2020//!
2121//! [`SpatialQuery`]: crate::spatial_query::SpatialQuery
22- //! [`BvhBroadPhasePlugin`]: crate::collision::broad_phase::bvh:: BvhBroadPhasePlugin
22+ //! [`BvhBroadPhasePlugin`]: crate::collision::broad_phase::BvhBroadPhasePlugin
2323
2424mod diagnostics;
2525mod optimization;
Original file line number Diff line number Diff line change 1- #[ cfg( feature = "parallel" ) ]
21use core:: cell:: RefCell ;
32use core:: marker:: PhantomData ;
43
Original file line number Diff line number Diff line change @@ -554,13 +554,13 @@ impl From<ColliderAabb> for obvhs::aabb::Aabb {
554554 fn from ( value : ColliderAabb ) -> Self {
555555 Self {
556556 #[ cfg( feature = "3d" ) ]
557- min : value. min . into ( ) ,
557+ min : value. min . f32 ( ) . into ( ) ,
558558 #[ cfg( feature = "3d" ) ]
559559 max : value. max . into ( ) ,
560560 #[ cfg( feature = "2d" ) ]
561- min : value. min . extend ( 0.0 ) . into ( ) ,
561+ min : value. min . f32 ( ) . extend ( 0.0 ) . into ( ) ,
562562 #[ cfg( feature = "2d" ) ]
563- max : value. max . extend ( 0.0 ) . into ( ) ,
563+ max : value. max . f32 ( ) . extend ( 0.0 ) . into ( ) ,
564564 }
565565 }
566566}
You can’t perform that action at this time.
0 commit comments