From 8f471ab58f8676229d29cde03aba3597d096cf84 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 14 Oct 2019 20:07:35 -0400
Subject: [PATCH] Color/parallax

---
 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