From dbc5ef32fe48997a1a7eeec7434d9dd8b829e52e Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Thu, 4 Jul 2024 18:41:15 -0700 Subject: [PATCH] release prep (#116) --- Cargo.toml | 30 +++++++++++++++--------------- README.md | 1 + src/raycast.rs | 6 ++---- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 68ad845..b5ac823 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_mod_raycast" -version = "0.18.0-rc.0" +version = "0.18.0" authors = ["Aevyrie "] edition = "2021" license = "MIT" @@ -11,23 +11,23 @@ categories = ["game-engines", "rendering"] resolver = "2" [dependencies] -bevy_app = { version = "0.14.0-rc.2", default-features = false } -bevy_asset = { version = "0.14.0-rc.2", default-features = false } -bevy_derive = { version = "0.14.0-rc.2", default-features = false } -bevy_ecs = { version = "0.14.0-rc.2", default-features = false } -bevy_gizmos = { version = "0.14.0-rc.2", optional = true, default-features = false } -bevy_math = { version = "0.14.0-rc.2", default-features = false } -bevy_reflect = { version = "0.14.0-rc.2", default-features = false } -bevy_render = { version = "0.14.0-rc.2", default-features = false } -bevy_sprite = { version = "0.14.0-rc.2", optional = true, default-features = false } -bevy_transform = { version = "0.14.0-rc.2", default-features = false } -bevy_utils = { version = "0.14.0-rc.2", default-features = false } -bevy_window = { version = "0.14.0-rc.2", default-features = false } -bevy_color = { version = "0.14.0-rc.2", default-features = false } +bevy_app = { version = "0.14.0", default-features = false } +bevy_asset = { version = "0.14.0", default-features = false } +bevy_derive = { version = "0.14.0", default-features = false } +bevy_ecs = { version = "0.14.0", default-features = false } +bevy_gizmos = { version = "0.14.0", optional = true, default-features = false } +bevy_math = { version = "0.14.0", default-features = false } +bevy_reflect = { version = "0.14.0", default-features = false } +bevy_render = { version = "0.14.0", default-features = false } +bevy_sprite = { version = "0.14.0", optional = true, default-features = false } +bevy_transform = { version = "0.14.0", default-features = false } +bevy_utils = { version = "0.14.0", default-features = false } +bevy_window = { version = "0.14.0", default-features = false } +bevy_color = { version = "0.14.0", default-features = false } crossbeam-channel = "0.5" [dev-dependencies] -bevy = { version = "0.14.0-rc.2", default-features = true, features = [ +bevy = { version = "0.14.0", default-features = true, features = [ "default_font", "ktx2", "tonemapping_luts", diff --git a/README.md b/README.md index 2883931..9bc2877 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ I intend to track the `main` branch of Bevy. PRs supporting this are welcome! | bevy | bevy_mod_raycast | | ---- | ---------------- | +| 0.14 | 0.18 | | 0.13 | 0.17 | | 0.12 | 0.16 | | 0.11 | 0.9 - 0.15 | diff --git a/src/raycast.rs b/src/raycast.rs index 0043461..83bdef9 100644 --- a/src/raycast.rs +++ b/src/raycast.rs @@ -1,5 +1,3 @@ -use std::f32::EPSILON; - use bevy_math::{Mat4, Ray3d, Vec3, Vec3A}; use bevy_render::{ mesh::{Indices, Mesh, VertexAttributeValues}, @@ -264,13 +262,13 @@ pub fn ray_triangle_intersection( // if the determinant is negative the triangle is back facing // if the determinant is close to 0, the ray misses the triangle // This test checks both cases - if determinant < EPSILON { + if determinant < f32::EPSILON { return None; } } Backfaces::Include => { // ray and triangle are parallel if det is close to 0 - if determinant.abs() < EPSILON { + if determinant.abs() < f32::EPSILON { return None; } }