큐브추가, 카메라 오빗팅 추가

This commit is contained in:
2026-03-08 02:16:23 +09:00
parent 2b865725ca
commit f914ac3dff
3 changed files with 137 additions and 70 deletions

View File

@@ -65,10 +65,21 @@ public:
~MainScene() override;
private:
void updateCameraPosition();
GameState _gameState = GameState::init;
ax::EventListenerTouchAllAtOnce* _touchListener = nullptr;
ax::EventListenerKeyboard* _keyboardListener = nullptr;
ax::EventListenerMouse* _mouseListener = nullptr;
int _sceneID = 0;
// Camera Orbit State
ax::Camera* _camera3D = nullptr;
ax::Vec3 _targetPos = ax::Vec3::ZERO;
float _pitch = 45.0f; // degrees
float _yaw = 45.0f; // degrees
float _distance = 25.0f;
bool _isMouseDown = false;
ax::Vec2 _lastMousePos = ax::Vec2::ZERO;
};