|
RavEngine
|
Public Member Functions | |
| ParticleClothBuffersImpl (const PxU32 maxCloths, const PxU32 maxTriangles, const PxU32 maxSprings, const PxU32 maxParticles, PxCudaContextManager *cudaContextManager) | |
| void | release () |
| PxU32 | getMaxCloths () const |
| PxU32 | getNumCloths () const |
| PxU32 | getMaxSprings () const |
| PxU32 | getNumSprings () const |
| PxU32 | getMaxTriangles () const |
| PxU32 | getNumTriangles () const |
| PxU32 | getMaxParticles () const |
| PxU32 | getNumParticles () const |
| void | addCloth (const PxParticleCloth &particleCloth, const PxU32 *triangles, const PxU32 numTriangles, const PxParticleSpring *springs, const PxU32 numSprings, const PxVec4 *restPositions, const PxU32 numParticles) |
| Adds a PxParticleCloth to this PxParticleClothBufferHelper instance. | |
| void | addCloth (const PxReal blendScale, const PxReal restVolume, const PxReal pressure, const PxU32 *triangles, const PxU32 numTriangles, const PxParticleSpring *springs, const PxU32 numSprings, const PxVec4 *restPositions, const PxU32 numParticles) |
| Adds a cloth to this PxParticleClothBufferHelper instance. | |
| PxParticleClothDesc & | getParticleClothDesc () |
| Returns a PxParticleClothDesc for this PxParticleClothBufferHelper instance to be used for spring partitioning. | |
| ParticleClothBuffersImpl (const PxU32 maxCloths, const PxU32 maxTriangles, const PxU32 maxSprings, const PxU32 maxParticles, PxCudaContextManager *cudaContextManager) | |
| void | release () |
| PxU32 | getMaxCloths () const |
| PxU32 | getNumCloths () const |
| PxU32 | getMaxSprings () const |
| PxU32 | getNumSprings () const |
| PxU32 | getMaxTriangles () const |
| PxU32 | getNumTriangles () const |
| PxU32 | getMaxParticles () const |
| PxU32 | getNumParticles () const |
| void | addCloth (const PxParticleCloth &particleCloth, const PxU32 *triangles, const PxU32 numTriangles, const PxParticleSpring *springs, const PxU32 numSprings, const PxVec4 *restPositions, const PxU32 numParticles) |
| Adds a PxParticleCloth to this PxParticleClothBufferHelper instance. | |
| void | addCloth (const PxReal blendScale, const PxReal restVolume, const PxReal pressure, const PxU32 *triangles, const PxU32 numTriangles, const PxParticleSpring *springs, const PxU32 numSprings, const PxVec4 *restPositions, const PxU32 numParticles) |
| Adds a cloth to this PxParticleClothBufferHelper instance. | |
| PxParticleClothDesc & | getParticleClothDesc () |
| Returns a PxParticleClothDesc for this PxParticleClothBufferHelper instance to be used for spring partitioning. | |
Public Member Functions inherited from physx::PxUserAllocated | |
| PX_INLINE void * | operator new (size_t, void *address) |
| PX_INLINE void | operator delete (void *, void *) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete (void *ptr, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line) |
| PX_INLINE void | operator delete (void *ptr) |
| PX_INLINE void | operator delete[] (void *ptr) |
Public Attributes | |
| PxU32 | mMaxCloths |
| PxU32 | mMaxSprings |
| PxU32 | mMaxTriangles |
| PxU32 | mMaxParticles |
| PxParticleClothDesc | mClothDesc |
| PxCudaContextManager * | mCudaContextManager |
|
inlinevirtual |
Adds a PxParticleCloth to this PxParticleClothBufferHelper instance.
| [in] | particleCloth | The PxParticleCloth to be added. |
| [in] | triangles | A pointer to the triangles |
| [in] | numTriangles | The number of triangles |
| [in] | springs | A pointer to the springs |
| [in] | numSprings | The number of springs |
| [in] | restPositions | A pointer to the particle rest positions |
| [in] | numParticles | The number of particles in this cloth |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Adds a PxParticleCloth to this PxParticleClothBufferHelper instance.
| [in] | particleCloth | The PxParticleCloth to be added. |
| [in] | triangles | A pointer to the triangles |
| [in] | numTriangles | The number of triangles |
| [in] | springs | A pointer to the springs |
| [in] | numSprings | The number of springs |
| [in] | restPositions | A pointer to the particle rest positions |
| [in] | numParticles | The number of particles in this cloth |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Adds a cloth to this PxParticleClothBufferHelper instance.
Adds a cloth to this PxParticleClothBufferHelper instance. With this method the relevant parameters for inflatable simulation (restVolume, pressure) can be set directly.
| [in] | blendScale | This should be 1.f / (numPartitions + 1) if the springs are partitioned by the user. Otherwise this will be set during spring partitioning. |
| [in] | restVolume | The rest volume of the inflatable |
| [in] | pressure | The pressure of the inflatable. The target inflatable volume is defined as restVolume * pressure. Setting this to > 0.0 will enable inflatable simulation. |
| [in] | triangles | A pointer to the triangles |
| [in] | numTriangles | The number of triangles |
| [in] | springs | A pointer to the springs |
| [in] | numSprings | The number of springs |
| [in] | restPositions | A pointer to the particle rest positions |
| [in] | numParticles | The number of particles in this cloth |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Adds a cloth to this PxParticleClothBufferHelper instance.
Adds a cloth to this PxParticleClothBufferHelper instance. With this method the relevant parameters for inflatable simulation (restVolume, pressure) can be set directly.
| [in] | blendScale | This should be 1.f / (numPartitions + 1) if the springs are partitioned by the user. Otherwise this will be set during spring partitioning. |
| [in] | restVolume | The rest volume of the inflatable |
| [in] | pressure | The pressure of the inflatable. The target inflatable volume is defined as restVolume * pressure. Setting this to > 0.0 will enable inflatable simulation. |
| [in] | triangles | A pointer to the triangles |
| [in] | numTriangles | The number of triangles |
| [in] | springs | A pointer to the springs |
| [in] | numSprings | The number of springs |
| [in] | restPositions | A pointer to the particle rest positions |
| [in] | numParticles | The number of particles in this cloth |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Returns a PxParticleClothDesc for this PxParticleClothBufferHelper instance to be used for spring partitioning.
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Returns a PxParticleClothDesc for this PxParticleClothBufferHelper instance to be used for spring partitioning.
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.
|
inlinevirtual |
Implements physx::ExtGpu::PxParticleClothBufferHelper.