Commit cac8be71 authored by Pierre TESSIER's avatar Pierre TESSIER

Corrected warnings

parent 5f767383
......@@ -4,8 +4,6 @@
using namespace vcl;
static void createRay(MyEcs& m_ecs, ecs::Entity const& playerEntity, ecs::Entity const& aimCursorEntity, vcl::camera_scene const& camera, TransformComponent const& plyerTransform);
void CameraHandlingSystem::update(vcl::camera_scene& camera, MyEcs& m_ecs, ecs::Entity const& playerEntity, ecs::Entity const& aimCursorEntity, PlayerControlComponent const& controls, TransformComponent const& transform)
{
using Control = PlayerControlComponent::Control;
......@@ -16,7 +14,6 @@ void CameraHandlingSystem::update(vcl::camera_scene& camera, MyEcs& m_ecs, ecs::
return mapElem->second;
};
const vec3 verticalAxis{ 0, 0, 1 };
const auto sagittalAxis = normalize(transform.rotation * vec3{ 0, 1, 0 });
const auto lateralAxis = normalize(transform.rotation * vec3{ 1, 0, 0 });
camera.translation = -transform.position - lateralAxis * 0.5f - verticalAxis * 0.6f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment