mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user