mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Remove shortcut on ground plane 'G', was conflicting with turning gravity on/off
This commit is contained in:
parent
6164e6cd7e
commit
26ca1a9a1d
1 changed files with 3 additions and 3 deletions
|
@ -1245,7 +1245,6 @@ void Application::initMenu() {
|
|||
_renderAtmosphereOn->setShortcut(Qt::SHIFT | Qt::Key_A);
|
||||
(_renderGroundPlaneOn = renderMenu->addAction("Ground Plane"))->setCheckable(true);
|
||||
_renderGroundPlaneOn->setChecked(true);
|
||||
_renderGroundPlaneOn->setShortcut(Qt::SHIFT | Qt::Key_G);
|
||||
(_renderAvatarsOn = renderMenu->addAction("Avatars"))->setCheckable(true);
|
||||
_renderAvatarsOn->setChecked(true);
|
||||
(_renderAvatarBalls = renderMenu->addAction("Avatar as Balls"))->setCheckable(true);
|
||||
|
@ -1446,11 +1445,12 @@ void Application::update(float deltaTime) {
|
|||
if (_mousePressed && (_mouseVoxel.s != 0)) {
|
||||
glm::vec2 mouseDrag(_mouseX - _mouseDragStartedX, _mouseY - _mouseDragStartedY);
|
||||
glm::quat orientation = _myAvatar.getOrientation();
|
||||
//glm::vec3 front = orientation * IDENTITY_FRONT;
|
||||
//glm::vec3 right = orientation * IDENTITY_RIGHT;
|
||||
glm::vec3 front = orientation * IDENTITY_FRONT;
|
||||
glm::vec3 right = orientation * IDENTITY_RIGHT;
|
||||
glm::vec3 up = orientation * IDENTITY_UP;
|
||||
glm::vec3 towardVoxel = getMouseVoxelWorldCoordinates(_mouseVoxelDragging)
|
||||
- _myAvatar.getCameraPosition();
|
||||
towardVoxel = front * glm::length(towardVoxel);
|
||||
glm::vec3 lateralToVoxel = glm::cross(up, glm::normalize(towardVoxel)) * glm::length(towardVoxel);
|
||||
_voxelThrust = glm::vec3(0, 0, 0);
|
||||
_voxelThrust += towardVoxel * VOXEL_GRAB_THRUST * deltaTime * mouseDrag.y;
|
||||
|
|
Loading…
Reference in a new issue