Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniMinerX committed Jul 20, 2024
1 parent 4c67591 commit 23a533b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/bevy_xpbd_plugin/src/spatial_query.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use avian3d::{math::{Quaternion, Vector}, spatial_query::{RayCaster, ShapeCaster}};
use bevy::{math::Direction3d, prelude::*};
use bevy::prelude::*;
use space_editor_ui::{ext::bevy_inspector_egui::prelude::*, prelude::*};

use crate::collider::ColliderPrimitive;
Expand Down Expand Up @@ -32,7 +32,7 @@ impl From<RayCasterPrefab> for RayCaster {
fn from(val: RayCasterPrefab) -> Self {
Self::new(
val.origin,
Direction3d::new_unchecked(val.direction.normalize()),
Dir3::new_unchecked(val.direction.normalize()),
)
}
}
Expand All @@ -53,7 +53,7 @@ impl From<ShapeCasterPrefab> for ShapeCaster {
val.shape.to_collider(),
val.origin,
val.shape_rotation,
Direction3d::new_unchecked(val.direction.normalize()),
Dir3::new_unchecked(val.direction.normalize()),
)
.with_ignore_origin_penetration(true)
}
Expand Down

0 comments on commit 23a533b

Please sign in to comment.