Fix issue with wrong type conversion with double precision in examples

This commit is contained in:
Daniel Chappuis 2014-09-02 22:55:31 +02:00
parent 677c694109
commit 018b73ad04
7 changed files with 7 additions and 7 deletions

View File

@ -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],

View File

@ -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],

View File

@ -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],

View File

@ -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],

View File

@ -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],

View File

@ -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],

View File

@ -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],