From 86316bc674241c53985ab5909422ebe42d308a00 Mon Sep 17 00:00:00 2001 From: Geenz Date: Fri, 7 Jun 2013 16:00:13 -0400 Subject: [PATCH] Don't render the voxel selection when we're moving over a maximum velocity. --- interface/src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 12cf003f82..0d3c5284a6 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -694,6 +694,7 @@ void Application::mouseMoveEvent(QMouseEvent* event) { _mouseY = event->y(); // detect drag + printLog("Avatar velocity x, y, z: %f, %f, %f\n", _myAvatar.getVelocity().x, _myAvatar.getVelocity().y, _myAvatar.getVelocity().z); glm::vec3 mouseVoxelPos(_mouseVoxel.x, _mouseVoxel.y, _mouseVoxel.z); if (!_justEditedVoxel && mouseVoxelPos != _lastMouseVoxelPos) { if (event->buttons().testFlag(Qt::LeftButton)) { @@ -2283,6 +2284,9 @@ void Application::shiftPaintingColor() { void Application::maybeEditVoxelUnderCursor() { + if (_myAvatar.getVelocity().x > 0.5) { + printLog("We're going faster than 1 m/s!\n"); + } if (_addVoxelMode->isChecked() || _colorVoxelMode->isChecked()) { if (_mouseVoxel.s != 0) { PACKET_HEADER message = (_destructiveAddVoxel->isChecked() ?