SpiecsEngine
Loading...
Searching...
No Matches
◆
MouseRotate()
void Spices::MeshController::MouseRotate
(
const glm::vec2 &
delta
)
const
private
Definition at line
50
of file
MeshController.cpp
.
51
{
52
glm::vec3 rot = std::any_cast<TransformComponent*>(
m_CameraTranComp
)->GetRotation();
53
const
float
yawSign =
GetUpDirection
().y < 0 ? -1.0f : 1.0f;
54
55
rot.y += glm::degrees(yawSign * delta.x *
RotationSpeed
());
56
rot.x += glm::degrees(delta.y *
RotationSpeed
());
57
58
std::any_cast<TransformComponent*>(
m_CameraTranComp
)->SetRotation(rot);
59
}
Spices::MeshController::RotationSpeed
float RotationSpeed() const
Definition
MeshController.cpp:82
Spices::MeshController::m_CameraTranComp
std::any m_CameraTranComp
Definition
MeshController.h:44
Spices::MeshController::GetUpDirection
glm::vec3 GetUpDirection() const
Definition
MeshController.cpp:109
Spices
MeshController
Generated on Sun Mar 8 2026 10:24:49 for SpiecsEngine by
1.10.0