fixed re-export issues

- re-exporting only `shape::*` is kinda pointless, since it does not have any actual shapes defined
- re-exporting the whole `geometry` module is much better, because it solves the issue above
This commit is contained in:
Dmitry Stepanov
2026-06-15 23:23:34 +03:00
parent c8c2283b2a
commit 1f88118974
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ use crate::{
tilemap::TileMap,
},
};
pub use rapier2d::geometry::shape::*;
pub use rapier2d::geometry;
use rapier2d::math::{Pose2, Vec2};
use rapier2d::parry::query::DefaultQueryDispatcher;
use rapier2d::{
@@ -840,7 +840,7 @@ impl PhysicsWorld {
pub fn cast_shape(
&self,
graph: &Graph,
shape: &dyn Shape,
shape: &dyn geometry::Shape,
shape_pos: &Isometry2<f32>,
shape_vel: &Vector2<f32>,
max_toi: f32,
+2 -2
View File
@@ -79,7 +79,7 @@ use std::{
use strum_macros::{AsRefStr, EnumString, VariantNames};
use fyrox_graph::{NodeWrapper, SceneGraph};
pub use rapier3d::geometry::shape::*;
pub use rapier3d::geometry;
use rapier3d::math::{Pose3, Vec3};
use rapier3d::parry::query::DefaultQueryDispatcher;
use rapier3d::prelude::FrictionModel;
@@ -1288,7 +1288,7 @@ impl PhysicsWorld {
pub fn cast_shape(
&self,
graph: &Graph,
shape: &dyn Shape,
shape: &dyn geometry::Shape,
shape_pos: &Isometry3<f32>,
shape_vel: &Vector3<f32>,
max_toi: f32,