Skip to content

Commit 03571ad

Browse files
committed
Update Project Version
1 parent 34d700b commit 03571ad

File tree

9 files changed

+257
-112
lines changed

9 files changed

+257
-112
lines changed

.vscode/launch.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Unity Editor",
9+
"type": "unity",
10+
"path": "/c:/Repositories/MathUtilities/Library/EditorInstance.json",
11+
"request": "launch"
12+
},
13+
{
14+
"name": "Windows Player",
15+
"type": "unity",
16+
"request": "launch"
17+
},
18+
{
19+
"name": "OSX Player",
20+
"type": "unity",
21+
"request": "launch"
22+
},
23+
{
24+
"name": "Linux Player",
25+
"type": "unity",
26+
"request": "launch"
27+
},
28+
{
29+
"name": "iOS Player",
30+
"type": "unity",
31+
"request": "launch"
32+
},
33+
{
34+
"name": "Android Player",
35+
"type": "unity",
36+
"request": "launch"
37+
}
38+
]
39+
}

Assets/ConvexHull/ConvexHull.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public ConvexHullData(int initSize = 4) {
2222
}
2323

2424
/// <summary> Initialize a full Convex Hull Object.</summary>
25-
public ConvexHullData(IEnumerable<Vector3> hullPoints, int maxHullVertices = int.MaxValue) {
25+
public ConvexHullData(IEnumerable<Vector3> hullPoints, int maxHullVertices = 512) {
2626
vertices = new NativeList<VertexData>(maxHullVertices, Allocator.Persistent);
2727
triangles = new NativeList<int3 >(maxHullVertices, Allocator.Persistent);
2828
vertices.Clear(); triangles.Clear();
@@ -256,8 +256,6 @@ public void Dispose() {
256256
}
257257
}
258258

259-
[Range(5, 300)]
260-
public int maxHullVertices = 50;
261259
[Tooltip("This transform represents an interactive point for testing the convex hull.")]
262260
public Transform interactivePoint;
263261
protected ConvexHullData convexHull;
@@ -276,7 +274,7 @@ void Update() {
276274

277275
// Construct the convex hull
278276
if(convexHull.isCreated) { convexHull.Dispose(); }
279-
convexHull = new ConvexHullData(points, maxHullVertices);
277+
convexHull = new ConvexHullData(points);
280278
if (interactivePoint != null) { convexHull.GrowHull(interactivePoint.position); }
281279

282280
// Copy the data into the Unity Mesh Representation

Assets/Minkowski/Triangle.png.meta

+35-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Minkowski/star.png.meta

+34-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/manifest.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
22
"dependencies": {
3-
"com.unity.burst": "0.2.4-preview.27",
4-
"com.unity.collab-proxy": "1.2.9",
5-
"com.unity.mathematics": "0.0.12-preview.13",
6-
"com.unity.package-manager-ui": "2.1.0-preview.1",
7-
"com.unity.xr.legacyinputhelpers": "1.0.0",
3+
"com.unity.2d.sprite": "1.0.0",
4+
"com.unity.2d.tilemap": "1.0.0",
5+
"com.unity.burst": "1.1.2",
6+
"com.unity.collab-proxy": "1.2.16",
7+
"com.unity.collections": "0.0.9-preview.20",
8+
"com.unity.ide.rider": "1.1.0",
9+
"com.unity.ide.vscode": "1.1.2",
10+
"com.unity.mathematics": "1.1.0",
11+
"com.unity.multiplayer-hlapi": "1.0.4",
12+
"com.unity.test-framework": "1.1.3",
13+
"com.unity.timeline": "1.2.3",
14+
"com.unity.ugui": "1.0.0",
815
"com.unity.modules.ai": "1.0.0",
16+
"com.unity.modules.androidjni": "1.0.0",
917
"com.unity.modules.animation": "1.0.0",
1018
"com.unity.modules.assetbundle": "1.0.0",
1119
"com.unity.modules.audio": "1.0.0",

0 commit comments

Comments
 (0)