History

Merge pull request #12960 from hyperlogic/feature/bullet-debug-draw

Added items to the developer menu for debugging physics

John Conklin II committed 8 years ago

Commit f43b9ee2 parents 7d19586 4fa9af59 files · +195 −6Browse files

Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all

Unified · Split

interface/src/Application.cpp+20−0
@@ -7867,6 +7867,26 @@ void Application::switchDisplayMode() { · 7866 unmodified lines
78677867 _previousHMDWornStatus = currentHMDWornStatus;
78687868 }
78697869
7870+void Application::setShowBulletWireframe(bool value) {
7871+ _physicsEngine->setShowBulletWireframe(value);
7872+}
7873+
7874+void Application::setShowBulletAABBs(bool value) {
7875+ _physicsEngine->setShowBulletAABBs(value);
7876+}
7877+
7878+void Application::setShowBulletContactPoints(bool value) {
7879+ _physicsEngine->setShowBulletContactPoints(value);
7880+}
7881+
7882+void Application::setShowBulletConstraints(bool value) {
7883+ _physicsEngine->setShowBulletConstraints(value);
7884+}
7885+
7886+void Application::setShowBulletConstraintLimits(bool value) {
7887+ _physicsEngine->setShowBulletConstraintLimits(value);
7888+}
7889+
78707890 void Application::startHMDStandBySession() {
78717891 _autoSwitchDisplayModeSupportedHMDPlugin->startStandBySession();
78727892 }