mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-15 13:09:38 +02:00
This bug has been around a long time... introduced by commit 39ed7f7b
in 2014.
This became apparent to me when testing the tablet-ui, there was a case where the
hand styluses were not appearing when close to a web entity. Because findEntities
is such a fundamental feature used by handControllerGrab, this fix should make all
grabbing feel more consistent and predictable.
I added a unit test that reproduces the issue.
30 lines
648 B
C++
30 lines
648 B
C++
//
|
|
// AABoxTests.h
|
|
// tests/shared/src
|
|
//
|
|
// Created by Andrew Meadows on 2016.02.19
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AABoxTests_h
|
|
#define hifi_AABoxTests_h
|
|
|
|
#include <QtTest/QtTest>
|
|
#include <glm/glm.hpp>
|
|
|
|
#include <AABox.h>
|
|
|
|
class AABoxTests : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void testCtorsAndSetters();
|
|
void testContainsPoint();
|
|
void testTouchesSphere();
|
|
void testScale();
|
|
void testFindSpherePenetration();
|
|
};
|
|
|
|
#endif // hifi_AABoxTests_h
|