Skip to content

Commit

Permalink
release prep (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie authored Jul 5, 2024
1 parent 4c679fe commit dbc5ef3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
30 changes: 15 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_mod_raycast"
version = "0.18.0-rc.0"
version = "0.18.0"
authors = ["Aevyrie <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
6 changes: 2 additions & 4 deletions src/raycast.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::f32::EPSILON;

use bevy_math::{Mat4, Ray3d, Vec3, Vec3A};
use bevy_render::{
mesh::{Indices, Mesh, VertexAttributeValues},
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit dbc5ef3

Please sign in to comment.