mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 14:09:13 +02:00
To prevent tunneling when the rigid body cannot reach it's target due to being blocked by a wall or some other obstacle. Also, added unit tests for physics/BulletUtil rotateVector and clampLength functions.
27 lines
593 B
C++
27 lines
593 B
C++
//
|
|
// BulletUtilTests.h
|
|
// tests/physics/src
|
|
//
|
|
// Created by Andrew Meadows on 2014.11.02
|
|
// Copyright 2014 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_BulletUtilTests_h
|
|
#define hifi_BulletUtilTests_h
|
|
|
|
#include <QtTest/QtTest>
|
|
|
|
class BulletUtilTests : public QObject {
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void fromBulletToGLM();
|
|
void fromGLMToBullet();
|
|
void rotateVectorTest();
|
|
void clampLengthTest();
|
|
};
|
|
|
|
#endif // hifi_BulletUtilTests_h
|