fix another warning
This commit is contained in:
@@ -693,7 +693,7 @@ void btMultiBodyDynamicsWorld::integrateTransforms(btScalar timeStep)
|
|||||||
{
|
{
|
||||||
btVector3 posr = local_origin[0];
|
btVector3 posr = local_origin[0];
|
||||||
// float pos[4]={posr.x(),posr.y(),posr.z(),1};
|
// float pos[4]={posr.x(),posr.y(),posr.z(),1};
|
||||||
float quat[4]={-world_to_local[0].x(),-world_to_local[0].y(),-world_to_local[0].z(),world_to_local[0].w()};
|
btScalar quat[4]={-world_to_local[0].x(),-world_to_local[0].y(),-world_to_local[0].z(),world_to_local[0].w()};
|
||||||
btTransform tr;
|
btTransform tr;
|
||||||
tr.setIdentity();
|
tr.setIdentity();
|
||||||
tr.setOrigin(posr);
|
tr.setOrigin(posr);
|
||||||
@@ -723,7 +723,7 @@ void btMultiBodyDynamicsWorld::integrateTransforms(btScalar timeStep)
|
|||||||
|
|
||||||
btVector3 posr = local_origin[index];
|
btVector3 posr = local_origin[index];
|
||||||
// float pos[4]={posr.x(),posr.y(),posr.z(),1};
|
// float pos[4]={posr.x(),posr.y(),posr.z(),1};
|
||||||
float quat[4]={-world_to_local[index].x(),-world_to_local[index].y(),-world_to_local[index].z(),world_to_local[index].w()};
|
btScalar quat[4]={-world_to_local[index].x(),-world_to_local[index].y(),-world_to_local[index].z(),world_to_local[index].w()};
|
||||||
btTransform tr;
|
btTransform tr;
|
||||||
tr.setIdentity();
|
tr.setIdentity();
|
||||||
tr.setOrigin(posr);
|
tr.setOrigin(posr);
|
||||||
|
|||||||
Reference in New Issue
Block a user