Gabryelf / Gabryelf/Volumetric-Graphics-Js
Настройка контроллеров летающей камеры
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
🚀 Проект web 3D game: Galaxy battle
Работа с камерой и контроллерами
---
## Создание контроллера летящей камеры
- [x] Перейдите на сайт `threejs.org` и в разделе `examples` введите в поиск `lensflares` или найдите вручную пример где можно управлять камерой в полете.
- [x] Ознакомьтесь с примером и перейдите в код на git hub по кнопке в левом нижнем углу.
- [x] Ознакомьтесь с кодом и найдите импорт `FlyController`, а так же участок кода отвечающий за работу с ним.
- [x] На основе кода из примера создайте дополнительный метод в `CameraManager.js`.
- [x] Настройте вызов метода и все сопутствующие методы в `main.js` и `CameraManager.js`
- [x] Создайте экземпляр класса `THREE.Clock()` и вызовите в методе `animate` переменную для хранения delta времени.
- [x] Добавьте в метод `update` в `CameraManager.js` delta переменную в аргументы и вызовите метод в `animate`.
---
---
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with CameraManager.js and main.js, then compare the existing camera-controller setup with the Three.js lensflares example and its FlyController usage. The work is done when the controller method and its call path are configured, THREE.Clock delta time is created in animate, and delta is passed through update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, three.js
- Domain
- game-dev, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100