Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.18.0 #116

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <aevyrie@gmail.com>"]
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
Loading