16 _parent->
lookAt(targetPosition, {0.0f, 0.0f, -1.0f}, up, space);
18 LUG_LOG.warn(
"Camera: Attempt to use lookAt on a Camera without parent");
void lookAt(const Math::Vec3f &targetPosition, const Math::Vec3f &up, Node::TransformSpace space=Node::TransformSpace::Local)
void update(const Renderer &renderer, const View &renderView, Queue &renderQueue)
Update the render queue of the Camera by fetching the visible objects of the attached scene...
Type
Type of the resource.
Math::Mat4x4f _viewMatrix
const Math::Mat4x4f & getTransform()
void lookAt(const Math::Vec3f &targetPosition, const Math::Vec3f &localDirectionVector, const Math::Vec3f &localUpVector, TransformSpace space=TransformSpace::Local)
Rotates the node in order to look at the target position.
void fetchVisibleObjects(const Renderer &renderer, const Render::View &renderView, const Render::Camera::Camera &camera, Render::Queue &renderQueue) const