We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d1e8a commit 1456a78Copy full SHA for 1456a78
src/nodes/spatial/mod.rs
@@ -15,8 +15,8 @@ use mint::Vector3;
15
use parking_lot::Mutex;
16
use rustc_hash::FxHashMap;
17
use std::fmt::Debug;
18
-use std::ptr;
19
use std::sync::{Arc, OnceLock, Weak};
+use std::{f32, ptr};
20
use stereokit_rust::maths::Bounds;
21
22
stardust_xr_server_codegen::codegen_spatial_protocol!();
@@ -242,7 +242,7 @@ impl Spatial {
242
.upgrade()
243
.map(|zone| zone.field.clone())
244
.map(|field| field.distance(self, vec3a(0.0, 0.0, 0.0)))
245
- .unwrap_or(f32::MAX)
+ .unwrap_or(f32::NEG_INFINITY)
246
}
247
248
impl AspectIdentifier for Spatial {
0 commit comments