comments removed
This commit is contained in:
parent
70e9751814
commit
ecba24bd4e
19
src/main.cpp
19
src/main.cpp
@ -164,7 +164,6 @@ int main(int argc, char *argv[])
|
|||||||
/////////////////////
|
/////////////////////
|
||||||
// Camera rotation //
|
// Camera rotation //
|
||||||
/////////////////////
|
/////////////////////
|
||||||
/*
|
|
||||||
// Up / Down //
|
// Up / Down //
|
||||||
if(pb.er.isKeyDown(irr::KEY_UP) && pb.verticalCamRot < 100)
|
if(pb.er.isKeyDown(irr::KEY_UP) && pb.verticalCamRot < 100)
|
||||||
{
|
{
|
||||||
@ -195,7 +194,6 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
rotVel = 0;
|
rotVel = 0;
|
||||||
|
|
||||||
*/
|
|
||||||
pb.device->getCursorControl()->setVisible(false);
|
pb.device->getCursorControl()->setVisible(false);
|
||||||
|
|
||||||
irr::core::position2d<irr::s32> mousePos = pb.device -> getCursorControl() -> getPosition();
|
irr::core::position2d<irr::s32> mousePos = pb.device -> getCursorControl() -> getPosition();
|
||||||
@ -207,22 +205,7 @@ int main(int argc, char *argv[])
|
|||||||
rotVel = mouseMovement.X * pb.mouseSensitivity;
|
rotVel = mouseMovement.X * pb.mouseSensitivity;
|
||||||
rotVel *= -1;
|
rotVel *= -1;
|
||||||
|
|
||||||
// if(pb.verticalCamRot < 100 && pb.verticalCamRot > -120)
|
pb.verticalCamRot += mouseMovement.Y * pb.mouseSensitivity/2;
|
||||||
// {
|
|
||||||
pb.verticalCamRot += mouseMovement.Y * pb.mouseSensitivity/2;
|
|
||||||
// }
|
|
||||||
/*
|
|
||||||
else if(pb.verticalCamRot >= 100)
|
|
||||||
{
|
|
||||||
pb.verticalCamRot = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
else if(pb.verticalCamRot <= -120)
|
|
||||||
{
|
|
||||||
pb.verticalCamRot = -120;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
// change directions of ro
|
|
||||||
|
|
||||||
irr::core::vector3df playerRot = pb.player -> getRotation();
|
irr::core::vector3df playerRot = pb.player -> getRotation();
|
||||||
irr::core::vector3df playerPos = pb.player -> getPosition();
|
irr::core::vector3df playerPos = pb.player -> getPosition();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user