Helper class to manage PxParticleClothDesc buffers used for communicating particle based cloths to PxParticleClothBuffer.
More...
#include <PxParticleExt.h>
|
|
virtual void | release ()=0 |
| |
| virtual PxU32 | getMaxCloths () const =0 |
| |
| virtual PxU32 | getNumCloths () const =0 |
| |
| virtual PxU32 | getMaxSprings () const =0 |
| |
| virtual PxU32 | getNumSprings () const =0 |
| |
| virtual PxU32 | getMaxTriangles () const =0 |
| |
| virtual PxU32 | getNumTriangles () const =0 |
| |
| virtual PxU32 | getMaxParticles () const =0 |
| |
| virtual PxU32 | getNumParticles () const =0 |
| |
| virtual void | addCloth (const PxParticleCloth &particleCloth, const PxU32 *triangles, const PxU32 numTriangles, const PxParticleSpring *springs, const PxU32 numSprings, const PxVec4 *restPositions, const PxU32 numParticles)=0 |
| | Adds a PxParticleCloth to this PxParticleClothBufferHelper instance.
|
| |
| virtual 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)=0 |
| | Adds a cloth to this PxParticleClothBufferHelper instance.
|
| |
| virtual PxParticleClothDesc & | getParticleClothDesc ()=0 |
| | Returns a PxParticleClothDesc for this PxParticleClothBufferHelper instance to be used for spring partitioning.
|
| |
Helper class to manage PxParticleClothDesc buffers used for communicating particle based cloths to PxParticleClothBuffer.
◆ addCloth() [1/2]
| virtual void physx::ExtGpu::PxParticleClothBufferHelper::addCloth |
( |
const PxParticleCloth & |
particleCloth, |
|
|
const PxU32 * |
triangles, |
|
|
const PxU32 |
numTriangles, |
|
|
const PxParticleSpring * |
springs, |
|
|
const PxU32 |
numSprings, |
|
|
const PxVec4 * |
restPositions, |
|
|
const PxU32 |
numParticles |
|
) |
| |
|
pure virtual |
◆ addCloth() [2/2]
| virtual void physx::ExtGpu::PxParticleClothBufferHelper::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 |
|
) |
| |
|
pure virtual |
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.
- Parameters
-
| [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 |
- See also
- PxParticleSpring
Implemented in physx::ExtGpu::ParticleClothBuffersImpl, and physx::ExtGpu::ParticleClothBuffersImpl.
◆ getMaxCloths()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getMaxCloths |
( |
| ) |
const |
|
pure virtual |
◆ getMaxParticles()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getMaxParticles |
( |
| ) |
const |
|
pure virtual |
◆ getMaxSprings()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getMaxSprings |
( |
| ) |
const |
|
pure virtual |
◆ getMaxTriangles()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getMaxTriangles |
( |
| ) |
const |
|
pure virtual |
◆ getNumCloths()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getNumCloths |
( |
| ) |
const |
|
pure virtual |
◆ getNumParticles()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getNumParticles |
( |
| ) |
const |
|
pure virtual |
◆ getNumSprings()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getNumSprings |
( |
| ) |
const |
|
pure virtual |
◆ getNumTriangles()
| virtual PxU32 physx::ExtGpu::PxParticleClothBufferHelper::getNumTriangles |
( |
| ) |
const |
|
pure virtual |
◆ getParticleClothDesc()
| virtual PxParticleClothDesc & physx::ExtGpu::PxParticleClothBufferHelper::getParticleClothDesc |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: