Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
komietty committed Apr 29, 2022
1 parent c739d49 commit ab68116
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/[Bb]uilds/
/[Ll]ogs/
/[Mm]emoryCaptures/
/[Cc]apture*/
/[Uu]serSettings/

# Never ignore Asset meta data
!/[Aa]ssets/**/*.meta
Expand All @@ -21,6 +23,7 @@

# Visual Studio cache directory
.vs/
.vscode/
.vsconfig

# Gradle cache directory
Expand Down
4 changes: 2 additions & 2 deletions Assets/Demo/Demo.unity
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ MonoBehaviour:
createCollider: 1
showDebugMesh: 1
itr: 25
speed: 0.05
speed: 0.8
triangleIndices: e438000064380000763900006b3b000096200000aa1f00006c210000f52200007d21000013230000ee39000075360000553700005f3a0000f4610000d4620000
--- !u!1 &705507993
GameObject:
Expand Down Expand Up @@ -370,7 +370,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!199 &1624661422
ParticleSystemRenderer:
serializedVersion: 6
Expand Down
2 changes: 1 addition & 1 deletion Assets/Demo/Demo3D_Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Update() {
anim.speed = speed;
aqh.Execute(itr);
var m = aqh.CreateMesh();
cld.sharedMesh = m;
if(cld != null) cld.sharedMesh = m;
if (showDebugMesh) Graphics.DrawMesh(m, V3.zero, Quaternion.identity, mat, 0);
}

Expand Down
1 change: 0 additions & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"com.unity.ide.visualstudio": "2.0.7",
"com.unity.ide.vscode": "1.2.3",
"com.unity.mathematics": "1.2.1",
"com.unity.recorder": "2.5.5",
"com.unity.test-framework": "1.1.24",
"com.unity.textmeshpro": "3.0.4",
"com.unity.timeline": "1.5.4",
Expand Down
9 changes: 0 additions & 9 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.recorder": {
"version": "2.5.5",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.timeline": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.1.24",
"depth": 0,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Since this module generates a mesh, it is possible to use output mesh as a colli


## 2D Convexhull
<img src="Recordings/2d.gif" width="600px">
<img src="Recordings/2d.gif">

## 3D Convexhull
<img src="Recordings/3d.gif" width="600px">
<img src="Recordings/3d.gif">

## Usage
You can assign specific vertex on scene view to include convex calculation.
Expand Down

0 comments on commit ab68116

Please sign in to comment.