<!DOCTYPE html>


СОЗДАНИЕ СЦЕНЫ

Подготовка

Камера

Абстрактный базовый класс для камер. Этот класс всегда должен быть унаследован при создании новой камеры.

Конструкторы

Camera()

Этот конструктор задаёт следующие свойства: matrixWorldInverse и projectionMatrix.

Свойства

.matrixWorldInverse

.matrixWorldInverse This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera. # .projectionMatrix This is the matrix which contains the projection. # .layers The layer membership of the camera. Only objects that have at least one layer in common with the camera will be visible. Methods # .getWorldDirection ( vector ) vector — (optional) It returns a vector representing the direction in which the camera is looking, in world space. # .lookAt ( vector ) vector — point to look at This makes the camera look at the vector position in the global space as long as the parent of this camera is the scene or at position (0,0,0). # .clone ( camera ) camera — camera to clone It returns a clone of camera. Source src/cameras/Camera.js

Яндекс.Метрика