cleanup
This commit is contained in:
@@ -55,7 +55,7 @@ namespace OpenVulkano::Input
|
||||
|
||||
void InputDeviceMouse::ClearAxes()
|
||||
{
|
||||
for (int i = 2; i < AXES_SIZE; i++)
|
||||
for (int i = InputKey::Mouse::AXIS_X; i < AXES_SIZE; i++)
|
||||
{
|
||||
axes[i] = 0;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenVulkano::Scene
|
||||
rayEye.z = -1;
|
||||
rayEye.a = 0;
|
||||
|
||||
Math::Vector3f rayWorld = normalize(inverse(m_view) * rayEye);
|
||||
Math::Vector3f rayWorld = normalize(GetWorldMatrix() * rayEye);
|
||||
|
||||
Ray r(GetPosition(), rayWorld);
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user