From 23a533b826057547d855043f30494e964959d377 Mon Sep 17 00:00:00 2001 From: MiniMinerX Date: Sat, 20 Jul 2024 16:41:27 -0700 Subject: [PATCH] naming --- modules/bevy_xpbd_plugin/src/spatial_query.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bevy_xpbd_plugin/src/spatial_query.rs b/modules/bevy_xpbd_plugin/src/spatial_query.rs index a8101416..ca81f309 100644 --- a/modules/bevy_xpbd_plugin/src/spatial_query.rs +++ b/modules/bevy_xpbd_plugin/src/spatial_query.rs @@ -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; @@ -32,7 +32,7 @@ impl From for RayCaster { fn from(val: RayCasterPrefab) -> Self { Self::new( val.origin, - Direction3d::new_unchecked(val.direction.normalize()), + Dir3::new_unchecked(val.direction.normalize()), ) } } @@ -53,7 +53,7 @@ impl From 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) }