Extend map camera controller
This commit is contained in:
@@ -44,6 +44,13 @@ namespace OpenVulkano
|
||||
CURRENT_FRAME.needsRedraw = true;
|
||||
}
|
||||
}
|
||||
|
||||
void MapCameraController::SetSliceHeight(float height)
|
||||
{
|
||||
float diff = height - GetCamera()->GetPosition().y;
|
||||
GetCamera()->SetMatrix(Math::Utils::translate(Math::Vector3f_SIMD{0,diff,0}) * GetCamera()->GetMatrix());
|
||||
CURRENT_FRAME.needsRedraw = true;
|
||||
}
|
||||
|
||||
void MapCameraController::SetDefaultKeybindings()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user