From 49d9c15d375942997692f7fccfb697665d0cb59e Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sun, 20 Oct 2019 15:27:50 -0400
Subject: [PATCH] Sort by size
---
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