Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. FixedCamera *fixedCamera = new FixedCamera();
  2.     AddChild(fixedCamera);
  3.     SetActiveCamera(fixedCamera->GetComponent<CameraComponent>());
  4.     fixedCamera->GetTransform()->Translate(0.0f, 27.0f, 0.0f);
  5.     fixedCamera->GetTransform()->Rotate(XM_PIDIV2, 0.0f, 0.0f, false);
  6.     /*FixedCamera* fixedCam = new FixedCamera();
  7.     AddChild(fixedCam);
  8.     SetActiveCamera(fixedCam->GetComponent<CameraComponent>());
  9.    
  10.     fixedCam->GetTransform()->Translate(XMFLOAT3(0, 50, 0));
  11.     fixedCam->GetComponent<CameraComponent>()->GetTransform()->Rotate(XMFLOAT3(90, 0, 0), false);
  12. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement