-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from Limit-Theory-Redux/dga/optimize-physics-…
…collision-shapes Introduce a cache for physics collision shapes.
- Loading branch information
Showing
10 changed files
with
284 additions
and
212 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::math::Vec3; | ||
use crate::render::Mesh; | ||
|
||
pub enum CollisionShapeType { | ||
Box { half_extents: Vec3 }, | ||
Sphere { radius: f32 }, | ||
ConvexHull { mesh: Mesh }, | ||
ConvexDecomposition { mesh: Mesh }, | ||
Trimesh { mesh: Mesh }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
mod collision_shape; | ||
mod collision_shape_type; | ||
mod physics; | ||
mod rigid_body; | ||
mod shape_cache; | ||
mod trigger; | ||
mod wrappers; | ||
|
||
pub use collision_shape::*; | ||
pub use collision_shape_type::*; | ||
pub use physics::*; | ||
pub use rigid_body::*; | ||
pub use shape_cache::*; | ||
pub use trigger::*; | ||
pub use wrappers::*; |
Oops, something went wrong.