aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/include
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-10-20 14:30:56 +0200
committerMarijn Tamis <[email protected]>2017-10-20 14:36:12 +0200
commitfabb251458f4a2d6d4f87dd36038fac2774b378c (patch)
tree68a4a0ecd940dc949e0477d521d8c159968cfcd5 /NvCloth/include
parentNvCloth 1.1.2 Release. (22576033) (diff)
downloadnvcloth-fabb251458f4a2d6d4f87dd36038fac2774b378c.tar.xz
nvcloth-fabb251458f4a2d6d4f87dd36038fac2774b378c.zip
NvCloth 1.1.3 Release. (23014067)v1.1.3
Diffstat (limited to 'NvCloth/include')
-rw-r--r--NvCloth/include/NvCloth/Cloth.h2
-rw-r--r--NvCloth/include/NvCloth/Solver.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/NvCloth/include/NvCloth/Cloth.h b/NvCloth/include/NvCloth/Cloth.h
index ac957f7..6b745f5 100644
--- a/NvCloth/include/NvCloth/Cloth.h
+++ b/NvCloth/include/NvCloth/Cloth.h
@@ -279,7 +279,7 @@ class Cloth : public UserAllocated
/** \brief Set triangles for collision.
Each triangle in the list is defined by of 3 vertices.
- The values currently in range [first, last[ will be replaced with the content of convexMasks.
+ The values currently in range [first, last[ will be replaced with the content of triangles.
*/
virtual void setTriangles(Range<const physx::PxVec3> triangles, uint32_t first, uint32_t last) = 0;
virtual void setTriangles(Range<const physx::PxVec3> triangles, Range<const physx::PxVec3>, uint32_t first) = 0;
diff --git a/NvCloth/include/NvCloth/Solver.h b/NvCloth/include/NvCloth/Solver.h
index d2eb955..a293524 100644
--- a/NvCloth/include/NvCloth/Solver.h
+++ b/NvCloth/include/NvCloth/Solver.h
@@ -30,6 +30,7 @@
#pragma once
#include "NvCloth/Allocator.h"
+#include "NvCloth/Range.h"
#include "PsArray.h"
namespace nv
@@ -56,6 +57,9 @@ class Solver : public UserAllocated
/// Adds cloth object.
virtual void addCloth(Cloth* cloth) = 0;
+ /// Adds an array of cloth objects.
+ virtual void addCloths(Range<Cloth*> cloths) = 0;
+
/// Removes cloth object.
virtual void removeCloth(Cloth* cloth) = 0;