diff options
Diffstat (limited to 'demo/scenes/frictionmoving.h')
| -rw-r--r-- | demo/scenes/frictionmoving.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demo/scenes/frictionmoving.h b/demo/scenes/frictionmoving.h index ae8ba8e..b3cce90 100644 --- a/demo/scenes/frictionmoving.h +++ b/demo/scenes/frictionmoving.h @@ -46,6 +46,13 @@ public: g_lightDistance *= 1.5f; mTime = 0.0f; + + if (mType == 3) + { + Mesh* m = CreateDiscMesh(0.75f, 32); + mMesh = CreateTriangleMesh(m); + delete m; + } } void Update() @@ -80,6 +87,9 @@ public: case 2: AddCapsule(0.1f, 1.5f, pos, rot); break; + case 3: + AddTriangleMesh(mMesh, pos, rot, 1.0f); + break; }; g_buffers->shapePrevPositions[0] = Vec4(prevPos, 0.0f); @@ -90,4 +100,6 @@ public: float mTime; int mType; + + NvFlexTriangleMeshId mMesh; };
\ No newline at end of file |