diff --git a/examples/common/Box.cpp b/examples/common/Box.cpp index 1a738714..8c75f481 100644 --- a/examples/common/Box.cpp +++ b/examples/common/Box.cpp @@ -163,7 +163,7 @@ void Box::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the box - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/Capsule.cpp b/examples/common/Capsule.cpp index 85c1f341..79efeb5a 100644 --- a/examples/common/Capsule.cpp +++ b/examples/common/Capsule.cpp @@ -124,7 +124,7 @@ void Capsule::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the sphere - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/Cone.cpp b/examples/common/Cone.cpp index 58b0b2d7..29f59f6d 100644 --- a/examples/common/Cone.cpp +++ b/examples/common/Cone.cpp @@ -124,7 +124,7 @@ void Cone::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the cone - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/ConvexMesh.cpp b/examples/common/ConvexMesh.cpp index 152417fd..ad5d178f 100644 --- a/examples/common/ConvexMesh.cpp +++ b/examples/common/ConvexMesh.cpp @@ -137,7 +137,7 @@ void ConvexMesh::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the sphere - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/Cylinder.cpp b/examples/common/Cylinder.cpp index 106f7258..d4540b41 100644 --- a/examples/common/Cylinder.cpp +++ b/examples/common/Cylinder.cpp @@ -124,7 +124,7 @@ void Cylinder::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the cylinder - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/Dumbbell.cpp b/examples/common/Dumbbell.cpp index 595a3915..a55da732 100644 --- a/examples/common/Dumbbell.cpp +++ b/examples/common/Dumbbell.cpp @@ -142,7 +142,7 @@ void Dumbbell::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the sphere - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13], diff --git a/examples/common/Sphere.cpp b/examples/common/Sphere.cpp index 075c0c22..1274b9d2 100644 --- a/examples/common/Sphere.cpp +++ b/examples/common/Sphere.cpp @@ -124,7 +124,7 @@ void Sphere::updateTransform() { rp3d::Transform transform = mRigidBody->getInterpolatedTransform(); // Compute the transform used for rendering the sphere - float matrix[16]; + rp3d::decimal matrix[16]; transform.getOpenGLMatrix(matrix); openglframework::Matrix4 newMatrix(matrix[0], matrix[4], matrix[8], matrix[12], matrix[1], matrix[5], matrix[9], matrix[13],