Default camera constructor.
* Set keyboard listener using a camera movement direction. * Works only if camera keyboard listener isn't locked. * Returns reference to this so it can be used in a stream.
* Set mouse move listener using x and y offsets. * Works only if camera mouse move listener isn't locked. * If it works then it updates camera vectors at the end. * Returns reference to this so it can be used in a stream.
* Set mouse scroll listener using y offset. * Works only if camera mouse scroll listener isn't locked. * Returns reference to this so it can be used in a stream.
* Returns camera projection matrix.
* Returns camera view matrix.
Get camera pitch.
Set camera pitch.
Get camera yaw.
Set camera yaw.
Get camera zFar.
Set camera zFar.
Get camera zNear.
Set camera zNear.
Called after all scene entitys instantiation. It is optional.
Called every frame to update the current state of the scene entity. It is optional.
* Represents the view of the observer. * Everything that is rendered to the screen is processed within the projection matrix and view matrix of a camera. * Inheriths Entity class and encapsulates NodeBody macro. * It has a custom constructor that calls: updateCameraVectors and adds default CameraPreset.