may be the point is the model?
i tried another model,which is the same model like obj_car.
here is really just rotation no more translation,but have a question?
{SimpleVector front=obj_car.getZAxis();
front.scalarMul(-1);
Matrix a03=obj_wp[1].getRotationMatrix();
a03.setRow(3, 0, 0, 0, 1);
if(obj_car.checkForCollision(front, 2.5f)==obj_wp[1].getID())
{obj_car.setRotationMatrix(a03);}
}
question:
1,when i rotate obj_car,obj_wp[1] was rotated too,why?
2.i just want the obj_car and obj_wp[]1 have the same face in the world space,no translation,just rotateisY or rotateYaxis .
Is there a better suggest?
PS:recently,i have asked so many questions, and you always have the best answer,thanks again,