Using DefaultAxis to specify one of the base axis to move against
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenVulkano
|
||||
Scene::SimpleDrawable m_drawable;
|
||||
Scene::Node m_node;
|
||||
};
|
||||
const Math::Vector3f PLANE_NORMAL(1, 0, 0);
|
||||
const Math::Vector3f PLANE_NORMAL(1, 0, 1);
|
||||
}
|
||||
class MovingCubeAppImpl final : public MovingCubeApp
|
||||
{
|
||||
@@ -127,6 +127,7 @@ namespace OpenVulkano
|
||||
m_morphableCameraControl.Init(&m_camera);
|
||||
#if USE_PLANE_CAM_CONTROL
|
||||
m_cameraControl.Init(&m_camera, PLANE_NORMAL);
|
||||
// m_cameraControl.Init(&m_camera, Scene::PlaneCameraController::DefaultAxis::OYZ);
|
||||
#else
|
||||
m_cameraControl.Init(&m_camera);
|
||||
#endif
|
||||
@@ -147,6 +148,7 @@ namespace OpenVulkano
|
||||
GetGraphicsAppManager()->GetRenderer()->SetScene(&m_scene);
|
||||
#if USE_PLANE_CAM_CONTROL
|
||||
m_cameraControl.Init(&m_camera, PLANE_NORMAL);
|
||||
// m_cameraControl.Init(&m_camera, Scene::PlaneCameraController::DefaultAxis::OYZ);
|
||||
#else
|
||||
m_cameraControl.Init(&m_camera);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user