Compare commits
2 Commits
2ef2a29601
...
d62d5c78bf
| Author | SHA1 | Date | |
|---|---|---|---|
|
d62d5c78bf
|
|||
|
2a5f1b2ffd
|
@ -29,7 +29,7 @@ constexpr float CAMERA_FOV = 90.0;
|
||||
constexpr float FOV_SPEED = 1.0;
|
||||
constexpr float MIN_FOV = 10.0;
|
||||
constexpr float MAX_FOV = 180.0;
|
||||
constexpr float CAMERA_DISTANCE = 20.0;
|
||||
constexpr float CAMERA_DISTANCE = 150.0;
|
||||
constexpr float ZOOM_SPEED = 2.5;
|
||||
constexpr float MIN_CAMERA_DISTANCE = 2.0;
|
||||
constexpr float MAX_CAMERA_DISTANCE = 2000.0;
|
||||
|
||||
@ -78,7 +78,7 @@ public:
|
||||
|
||||
// Camera
|
||||
bool camera_lock = true;
|
||||
bool camera_mass_center_lock = false;
|
||||
bool camera_mass_center_lock = true;
|
||||
bool camera_panning = false;
|
||||
bool camera_rotating = false;
|
||||
|
||||
|
||||
@ -278,7 +278,7 @@ auto input_handler::toggle_camera_projection() const -> void
|
||||
auto input_handler::move_block_nor() -> void
|
||||
{
|
||||
const puzzle& current = state.get_current_state();
|
||||
const std::optional<puzzle>& next = current.try_move_block_at_fast(sel_x, sel_y, nor);
|
||||
const std::optional<puzzle>& next = current.try_move_block_at(sel_x, sel_y, nor);
|
||||
if (!next) {
|
||||
return;
|
||||
}
|
||||
@ -290,7 +290,7 @@ auto input_handler::move_block_nor() -> void
|
||||
auto input_handler::move_block_wes() -> void
|
||||
{
|
||||
const puzzle& current = state.get_current_state();
|
||||
const std::optional<puzzle>& next = current.try_move_block_at_fast(sel_x, sel_y, wes);
|
||||
const std::optional<puzzle>& next = current.try_move_block_at(sel_x, sel_y, wes);
|
||||
if (!next) {
|
||||
return;
|
||||
}
|
||||
@ -302,7 +302,7 @@ auto input_handler::move_block_wes() -> void
|
||||
auto input_handler::move_block_sou() -> void
|
||||
{
|
||||
const puzzle& current = state.get_current_state();
|
||||
const std::optional<puzzle>& next = current.try_move_block_at_fast(sel_x, sel_y, sou);
|
||||
const std::optional<puzzle>& next = current.try_move_block_at(sel_x, sel_y, sou);
|
||||
if (!next) {
|
||||
return;
|
||||
}
|
||||
@ -314,7 +314,7 @@ auto input_handler::move_block_sou() -> void
|
||||
auto input_handler::move_block_eas() -> void
|
||||
{
|
||||
const puzzle& current = state.get_current_state();
|
||||
const std::optional<puzzle>& next = current.try_move_block_at_fast(sel_x, sel_y, eas);
|
||||
const std::optional<puzzle>& next = current.try_move_block_at(sel_x, sel_y, eas);
|
||||
if (!next) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user