specs-physics

[Fork] Integration of Amethyst, SPECS and Nphysics together.
git clone https://git.jojolepro.com/specs-physics.git
Log | Files | Refs | README | LICENSE

commit c2db9419359f58dc54415d284063138e82016c5c
parent df607e2533a8302fbed5e6834acca38f6aaa0f2c
Author: Joël Lupien <jojolepromain@gmail.com>
Date:   Mon,  5 Aug 2019 07:39:23 -0400

Merge pull request #16 from jojolepro/hoppinworld

Update to amethyst 0.12
Diffstat:
MCargo.toml | 2+-
Msrc/bodies.rs | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -26,7 +26,7 @@ shrev = "1.1.1" nalgebra = "0.18.0" ncollide3d = "0.19" nphysics3d = "0.11.1" -amethyst_core = { version = "0.6.0", optional = true } +amethyst_core = { version = "0.7.0", optional = true } objekt = "0.1.2" [dev-dependencies] diff --git a/src/bodies.rs b/src/bodies.rs @@ -54,16 +54,16 @@ pub trait Position<N: RealField>: } #[cfg(feature = "amethyst")] -impl Position<amethyst_core::Float> for amethyst_core::Transform { - fn isometry(&self) -> &Isometry3<amethyst_core::Float> { +impl Position<f32> for amethyst_core::Transform { + fn isometry(&self) -> &Isometry3<f32> { self.isometry() } - fn isometry_mut(&mut self) -> &mut Isometry3<amethyst_core::Float> { + fn isometry_mut(&mut self) -> &mut Isometry3<f32> { self.isometry_mut() } - fn set_isometry(&mut self, isometry: &Isometry3<amethyst_core::Float>) -> &mut Self { + fn set_isometry(&mut self, isometry: &Isometry3<f32>) -> &mut Self { self.set_isometry(*isometry) } }