From 767be784dc7fe293bf5c5ee6507df242526be3ed Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Tue, 24 Sep 2019 02:10:06 -0400
Subject: [PATCH] Rag doll is back.

---
 com/bulletphysics/collision/shapes/ShapeHull.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/com/bulletphysics/collision/shapes/ShapeHull.java b/com/bulletphysics/collision/shapes/ShapeHull.java
index 424d67a..9a95825 100755
--- a/com/bulletphysics/collision/shapes/ShapeHull.java
+++ b/com/bulletphysics/collision/shapes/ShapeHull.java
@@ -118,6 +118,12 @@
                         if (loop == 1)
                         {
                             //vec2.scale(0.5f);
+                            
+                            // Nodes are bigger
+                            vec2.x *= 5;
+                            vec2.y *= 5;
+                            vec2.z *= 5;
+                            
                             switch (capsule.getUpAxis())
                             {
                                 case 0: vec2.x /= capsule.getHalfHeight(); vec2.x *= capsule.getRadius()/2; vec2.x -= capsule.getHalfHeight(); break;
@@ -125,6 +131,7 @@
                                 case 2: vec2.z /= capsule.getHalfHeight(); vec2.z *= capsule.getRadius()/2; vec2.z -= capsule.getHalfHeight(); break;
                             }
                         }
+                        
                         vertices.getQuick(loop*NUM_UNITSPHERE_POINTS + i*rows + j).set(vec2);
                         normals.getQuick(loop*NUM_UNITSPHERE_POINTS + i*rows + j).set(normout);
                     }

--
Gitblit v1.6.2