From 29949b63ccd1ba7720fc9f4d09c5184d5e656ff1 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 23 Mar 2015 11:43:50 -0700 Subject: [PATCH] fix double precision build (a demo was broken) --- Demos3/ImportURDFDemo/ImportURDFSetup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp b/Demos3/ImportURDFDemo/ImportURDFSetup.cpp index c63662343..a777bee40 100644 --- a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp +++ b/Demos3/ImportURDFDemo/ImportURDFSetup.cpp @@ -283,7 +283,7 @@ struct ImportUrdfInternalData { } - float m_motorTargetVelocities[MAX_NUM_MOTORS]; + btScalar m_motorTargetVelocities[MAX_NUM_MOTORS]; btMultiBodyJointMotor* m_jointMotors [MAX_NUM_MOTORS]; int m_numMotors; }; @@ -1597,7 +1597,7 @@ void ImportUrdfSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) std::string jointName = u2b.getJointName(urdfLinkIndex); char motorName[1024]; sprintf(motorName,"%s q'", jointName.c_str()); - float* motorVel = &m_data->m_motorTargetVelocities[m_data->m_numMotors]; + btScalar* motorVel = &m_data->m_motorTargetVelocities[m_data->m_numMotors]; *motorVel = 0.f; SliderParams slider(motorName,motorVel); slider.m_minVal=-4;