Когда использовать
Make a hero object respond to pointer movement without blocking navigation.
Решения для реализации
- Normalize coordinates within the canvas bounds.
- Use bounded targets and frame-independent damping: 1-exp(-lambda*dt).
- Separate pointer, automatic and scroll modes; reset on pointer leave.
- Use a fixed angle for reduced motion and offer explicit keyboard rotation.
Как проверить результат
- The object stays framed at all aspect ratios.
- Pointer listeners do not block scrolling.
- Hidden canvases stop rendering.
Работающий пример
Подготавливаем 3D-сцену…