Closed TheJosh closed 12 years ago
I don't understand the code at all. Take a look in RenderOpenGL::mainRot() to see what I mean.
RenderOpenGL::mainRot()
Here is a sample (trimmed a little):
this->render_player->drive->body->getMotionState()->getWorldTransform(trans); btVector3 euler; PhysicsBullet::QuaternionToEulerXYZ(trans.getRotation(), euler); glLoadIdentity(); glTranslatef(this->virt_width / 2, this->virt_height / 2, 0); // Behind (3rd person) glRotatef(180, 0, 0, 1); glTranslatef(0,483,1095); glRotatef(74, 1, 0, 0); glRotatef(RAD_TO_DEG(-euler.z()), 0.f, 0.f, 1.f); glRotatef(180, 0.f, 0.f, 1.f); glTranslatef(0.f - trans.getOrigin().getX(), 0.f - trans.getOrigin().getY(), 500.f - trans.getOrigin().getZ());
If anyone can make sense of that, be my guest!
I don't understand the code at all. Take a look in
RenderOpenGL::mainRot()
to see what I mean.Here is a sample (trimmed a little):
If anyone can make sense of that, be my guest!