Commit 150900a0 authored by Anthony Kleine's avatar Anthony Kleine

The polyListStrings should be working as expected, but there's still no collision.

parent 0fd19f16
Pipeline #1881646 skipped
......@@ -354,16 +354,15 @@ public class InteriorBuilder
for (int i = 0; i < convexHulls.length; i++) {
// the number of PLANES in this convex hull, always 1 in a triangle
polyByteStrings.add((byte)1);
// a bunch of powers of two with one for each surface
for (int j = 1; j < 4; j++) {
polyByteStrings.add((byte)(j^2));
}
// the number 0
// a bunch of powers of two with one for each surface (we only have one surface - so just 1)
// This actually becomes InterestMask, and if InterestMask AND pointString[i] is greater then zero we continue, so we want both of these to be 1 so it returns true
polyByteStrings.add((byte)1);
// the number 0 (for the weird vertex calculation)
polyByteStrings.add((byte)0);
// the number of vertices in this convex hull (always 3 in a triangle)
polyByteStrings.add((byte)3);
// these correspond to vertices in some way.
// these correspond to vertices in some way. They need to be one so InterestMask AND pointString[i] is true
for (int j = 0; j < 3; j++) {
polyByteStrings.add((byte)1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment