큐브추가, 카메라 오빗팅 추가
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user