From 9e532009da0d2c1e1591bfe07209dc7625a0e158 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Fri, 12 Apr 2019 23:03:56 -0700 Subject: [PATCH] fix for issue #1037 (TestHoveringTank hull-shape performance issue) --- .../com_jme3_bullet_collision_shapes_HullCollisionShape.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp b/jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp index e3878d01e..604f5a0e9 100644 --- a/jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp +++ b/jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,6 +60,8 @@ extern "C" { shape->addPoint(vect); } + + shape->optimizeConvexHull(); return reinterpret_cast(shape); }