|
RavEngine
|
Public Member Functions | |
| virtual void | release () PX_OVERRIDE |
| Destroys the instance it is called on. | |
| virtual PxOmniPvd * | getOmniPvd () PX_OVERRIDE |
| Retrieves the PxOmniPvd instance if there is one registered with PxPhysics. | |
| virtual PxScene * | createScene (const PxSceneDesc &) PX_OVERRIDE |
| Creates a scene. | |
| void | releaseSceneInternal (PxScene &) |
| virtual PxU32 | getNbScenes () const PX_OVERRIDE |
| Gets number of created scenes. | |
| virtual PxU32 | getScenes (PxScene **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of scene pointers to a user buffer. | |
| virtual PxRigidStatic * | createRigidStatic (const PxTransform &) PX_OVERRIDE |
| Creates a static rigid actor with the specified pose and all other fields initialized to their default values. | |
| virtual PxRigidDynamic * | createRigidDynamic (const PxTransform &) PX_OVERRIDE |
| Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values. | |
| virtual PxArticulationReducedCoordinate * | createArticulationReducedCoordinate () PX_OVERRIDE |
| Creates a reduced-coordinate articulation with all fields initialized to their default values. | |
| virtual PxSoftBody * | createSoftBody (PxCudaContextManager &cudaContextManager) PX_OVERRIDE |
| Creates a FEM-based soft body with all fields initialized to their default values. | |
| virtual PxHairSystem * | createHairSystem (PxCudaContextManager &cudaContextManager) PX_OVERRIDE |
| Creates a hair system with all fields initialized to their default values. | |
| virtual PxFEMCloth * | createFEMCloth (PxCudaContextManager &cudaContextManager) PX_OVERRIDE |
| Creates a FEM-based cloth with all fields initialized to their default values. | |
| virtual PxPBDParticleSystem * | createPBDParticleSystem (PxCudaContextManager &cudaContexManager, PxU32 maxNeighborhood) PX_OVERRIDE |
| Creates a particle system with a position-based dynamics (PBD) solver. | |
| virtual PxFLIPParticleSystem * | createFLIPParticleSystem (PxCudaContextManager &cudaContexManager) PX_OVERRIDE |
| Creates a particle system with a fluid-implicit particle solver (FLIP). | |
| virtual PxMPMParticleSystem * | createMPMParticleSystem (PxCudaContextManager &cudaContexManager) PX_OVERRIDE |
| Creates a particle system with a material-point-method solver (MPM). | |
| virtual PxCustomParticleSystem * | createCustomParticleSystem (PxCudaContextManager &cudaContexManager, PxU32 maxNeighborhood) PX_OVERRIDE |
| Creates a customizable particle system to simulate effects that are not supported by PhysX natively (e.g. molecular dynamics). | |
| virtual PxBuffer * | createBuffer (PxU64 byteSize, PxBufferType::Enum bufferType, PxCudaContextManager *cudaContextManager) PX_OVERRIDE |
| Create a buffer for reading and writing data across host and device memory spaces. | |
| virtual PxConstraint * | createConstraint (PxRigidActor *actor0, PxRigidActor *actor1, PxConstraintConnector &connector, const PxConstraintShaderTable &shaders, PxU32 dataSize) PX_OVERRIDE |
| Creates a constraint shader. | |
| virtual PxAggregate * | createAggregate (PxU32 maxActors, PxU32 maxShapes, PxAggregateFilterHint filterHint) PX_OVERRIDE |
| Creates an aggregate with the specified maximum size and filtering hint. | |
| virtual PxShape * | createShape (const PxGeometry &, PxMaterial *const *, PxU16, bool, PxShapeFlags shapeFlags) PX_OVERRIDE |
| Creates a shape which may be attached to multiple actors. | |
| virtual PxShape * | createShape (const PxGeometry &, PxFEMSoftBodyMaterial *const *, PxU16, bool, PxShapeFlags shapeFlags) PX_OVERRIDE |
| virtual PxShape * | createShape (const PxGeometry &, PxFEMClothMaterial *const *, PxU16, bool, PxShapeFlags shapeFlags) PX_OVERRIDE |
| virtual PxU32 | getNbShapes () const PX_OVERRIDE |
| Return the number of shapes that currently exist. | |
| virtual PxU32 | getShapes (PxShape **userBuffer, PxU32 bufferSize, PxU32 startIndex) const PX_OVERRIDE |
| Writes the array of shape pointers to a user buffer. | |
| virtual PxMaterial * | createMaterial (PxReal staticFriction, PxReal dynamicFriction, PxReal restitution) PX_OVERRIDE |
| Creates a new rigid body material with certain default properties. | |
| virtual PxU32 | getNbMaterials () const PX_OVERRIDE |
| Return the number of rigid body materials that currently exist. | |
| virtual PxU32 | getMaterials (PxMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of rigid body material pointers to a user buffer. | |
| virtual PxFEMSoftBodyMaterial * | createFEMSoftBodyMaterial (PxReal youngs, PxReal poissons, PxReal dynamicFriction) PX_OVERRIDE |
| Creates a new FEM soft body material with certain default properties. | |
| virtual PxU32 | getNbFEMSoftBodyMaterials () const PX_OVERRIDE |
| Return the number of FEM soft body materials that currently exist. | |
| virtual PxU32 | getFEMSoftBodyMaterials (PxFEMSoftBodyMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of FEM soft body material pointers to a user buffer. | |
| virtual PxFEMClothMaterial * | createFEMClothMaterial (PxReal youngs, PxReal poissons, PxReal dynamicFriction) PX_OVERRIDE |
| Creates a new FEM cloth material with certain default properties. | |
| virtual PxU32 | getNbFEMClothMaterials () const PX_OVERRIDE |
| Return the number of FEM cloth materials that currently exist. | |
| virtual PxU32 | getFEMClothMaterials (PxFEMClothMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of FEM cloth material pointers to a user buffer. | |
| virtual PxPBDMaterial * | createPBDMaterial (PxReal friction, PxReal damping, PxReal adhesion, PxReal viscosity, PxReal vorticityConfinement, PxReal surfaceTension, PxReal cohesion, PxReal lift, PxReal drag, PxReal cflCoefficient, PxReal gravityScale) PX_OVERRIDE |
| Creates a new PBD material with certain default properties. | |
| virtual PxU32 | getNbPBDMaterials () const PX_OVERRIDE |
| Return the number of PBD materials that currently exist. | |
| virtual PxU32 | getPBDMaterials (PxPBDMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of PBD material pointers to a user buffer. | |
| virtual PxFLIPMaterial * | createFLIPMaterial (PxReal friction, PxReal damping, PxReal maxVelocity, PxReal viscosity, PxReal gravityScale) PX_OVERRIDE |
| Creates a new FLIP material with certain default properties. | |
| virtual PxU32 | getNbFLIPMaterials () const PX_OVERRIDE |
| Return the number of FLIP materials that currently exist. | |
| virtual PxU32 | getFLIPMaterials (PxFLIPMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of FLIP material pointers to a user buffer. | |
| virtual PxMPMMaterial * | createMPMMaterial (PxReal friction, PxReal damping, PxReal maxVelocity, bool isPlastic, PxReal youngsModulus, PxReal poissons, PxReal hardening, PxReal criticalCompression, PxReal criticalStretch, PxReal tensileDamageSensitivity, PxReal compressiveDamageSensitivity, PxReal attractiveForceResidual, PxReal gravityScale) PX_OVERRIDE |
| Creates a new MPM material with certain default properties. | |
| virtual PxU32 | getNbMPMMaterials () const PX_OVERRIDE |
| Return the number of MPM materials that currently exist. | |
| virtual PxU32 | getMPMMaterials (PxMPMMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of MPM material pointers to a user buffer. | |
| virtual PxCustomMaterial * | createCustomMaterial (void *gpuBuffer) PX_OVERRIDE |
| Creates a new material for custom particle systems. | |
| virtual PxU32 | getNbCustomMaterials () const PX_OVERRIDE |
| Return the number of custom materials that currently exist. | |
| virtual PxU32 | getCustomMaterials (PxCustomMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of custom material pointers to a user buffer. | |
| virtual PxTriangleMesh * | createTriangleMesh (PxInputStream &) PX_OVERRIDE |
| Creates a triangle mesh object. | |
| virtual PxU32 | getNbTriangleMeshes () const PX_OVERRIDE |
| Return the number of triangle meshes that currently exist. | |
| virtual PxU32 | getTriangleMeshes (PxTriangleMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of triangle mesh pointers to a user buffer. | |
| virtual PxTetrahedronMesh * | createTetrahedronMesh (PxInputStream &) PX_OVERRIDE |
| Creates a tetrahedron mesh object. | |
| virtual PxU32 | getNbTetrahedronMeshes () const PX_OVERRIDE |
| Return the number of tetrahedron meshes that currently exist. | |
| virtual PxU32 | getTetrahedronMeshes (PxTetrahedronMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of tetrahedron mesh pointers to a user buffer. | |
| virtual PxSoftBodyMesh * | createSoftBodyMesh (PxInputStream &) PX_OVERRIDE |
| Creates a softbody mesh object. | |
| virtual PxHeightField * | createHeightField (PxInputStream &stream) PX_OVERRIDE |
| Creates a heightfield object from previously cooked stream. | |
| virtual PxU32 | getNbHeightFields () const PX_OVERRIDE |
| Return the number of heightfields that currently exist. | |
| virtual PxU32 | getHeightFields (PxHeightField **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of heightfield pointers to a user buffer. | |
| virtual PxConvexMesh * | createConvexMesh (PxInputStream &) PX_OVERRIDE |
| Creates a convex mesh object. | |
| virtual PxU32 | getNbConvexMeshes () const PX_OVERRIDE |
| Return the number of convex meshes that currently exist. | |
| virtual PxU32 | getConvexMeshes (PxConvexMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of convex mesh pointers to a user buffer. | |
| virtual PxBVH * | createBVH (PxInputStream &) PX_OVERRIDE |
| Creates a bounding volume hierarchy. | |
| virtual PxU32 | getNbBVHs () const PX_OVERRIDE |
| Return the number of bounding volume hierarchies that currently exist. | |
| virtual PxU32 | getBVHs (PxBVH **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const PX_OVERRIDE |
| Writes the array of bounding volume hierarchy pointers to a user buffer. | |
| virtual PxParticleBuffer * | createParticleBuffer (PxU32 maxParticles, PxU32 maxVolumes, PxCudaContextManager *cudaContexManager) PX_OVERRIDE |
| Create particle buffer to simulate fluid/granular material. | |
| virtual PxParticleAndDiffuseBuffer * | createParticleAndDiffuseBuffer (PxU32 maxParticles, PxU32 maxVolumes, PxU32 maxDiffuseParticles, PxCudaContextManager *cudaContexManager) PX_OVERRIDE |
| Create a particle buffer for fluid dynamics with diffuse particles. Diffuse particles are used to simulate fluid effects such as foam, spray and bubbles. | |
| virtual PxParticleClothBuffer * | createParticleClothBuffer (PxU32 maxParticles, PxU32 maxNumVolumes, PxU32 maxNumCloths, PxU32 maxNumTriangles, PxU32 maxNumSprings, PxCudaContextManager *cudaContexManager) PX_OVERRIDE |
| Create a particle buffer to simulate particle cloth. | |
| virtual PxParticleRigidBuffer * | createParticleRigidBuffer (PxU32 maxParticles, PxU32 maxNumVolumes, PxU32 maxNumRigids, PxCudaContextManager *cudaContexManager) PX_OVERRIDE |
| Create a particle buffer to simulate rigid bodies using shape matching with particles. | |
| PX_FORCE_INLINE void | registerPhysXIndicatorGpuClient () |
| PX_FORCE_INLINE void | unregisterPhysXIndicatorGpuClient () |
| virtual PxPruningStructure * | createPruningStructure (PxRigidActor *const *actors, PxU32 nbActors) PX_OVERRIDE |
| Creates a pruning structure from actors. | |
| virtual const PxTolerancesScale & | getTolerancesScale () const PX_OVERRIDE |
| Returns the simulation tolerance parameters. | |
| virtual PxFoundation & | getFoundation () PX_OVERRIDE |
| Retrieves the Foundation instance. | |
| PX_INLINE NpScene * | getScene (PxU32 i) const |
| PX_INLINE PxU32 | getNumScenes () const |
| virtual void | registerDeletionListener (PxDeletionListener &observer, const PxDeletionEventFlags &deletionEvents, bool restrictedObjectSet) PX_OVERRIDE |
| Register a deletion listener. Listeners will be called whenever an object is deleted. | |
| virtual void | unregisterDeletionListener (PxDeletionListener &observer) PX_OVERRIDE |
| Unregister a deletion listener. | |
| virtual void | registerDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount) PX_OVERRIDE |
| Register specific objects for deletion events. | |
| virtual void | unregisterDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount) PX_OVERRIDE |
| Unregister specific objects for deletion events. | |
| void | notifyDeletionListeners (const PxBase *, void *userData, PxDeletionEventFlag::Enum deletionEvent) |
| PX_FORCE_INLINE void | notifyDeletionListenersUserRelease (const PxBase *b, void *userData) |
| PX_FORCE_INLINE void | notifyDeletionListenersMemRelease (const PxBase *b, void *userData) |
| virtual PxInsertionCallback & | getPhysicsInsertionCallback () PX_OVERRIDE |
| Gets PxPhysics object insertion interface. | |
| void | removeMaterialFromTable (NpMaterial &) |
| void | updateMaterial (NpMaterial &) |
| bool | sendMaterialTable (NpScene &) |
| NpMaterialManager< NpMaterial > & | getMaterialManager () |
| NpMaterialManager< NpFEMSoftBodyMaterial > & | getFEMSoftBodyMaterialManager () |
| NpMaterialManager< NpPBDMaterial > & | getPBDMaterialManager () |
| NpMaterial * | addMaterial (NpMaterial *np) |
| void | removeFEMSoftBodyMaterialFromTable (NpFEMSoftBodyMaterial &) |
| void | updateFEMSoftBodyMaterial (NpFEMSoftBodyMaterial &) |
| NpFEMSoftBodyMaterial * | addFEMMaterial (NpFEMSoftBodyMaterial *np) |
| void | removePBDMaterialFromTable (NpPBDMaterial &) |
| void | updatePBDMaterial (NpPBDMaterial &) |
| NpPBDMaterial * | addPBDMaterial (NpPBDMaterial *np) |
Public Member Functions inherited from physx::PxPhysics | |
| PX_FORCE_INLINE PX_DEPRECATED PxAggregate * | createAggregate (PxU32 maxActor, PxAggregateFilterHint filterHint) |
| Creates an aggregate with the specified maximum size and filtering hint. | |
| PX_DEPRECATED PX_FORCE_INLINE PxBVH * | createBVHStructure (PxInputStream &stream) |
| PX_DEPRECATED PX_FORCE_INLINE PxU32 | getNbBVHStructures () const |
| PX_DEPRECATED PX_FORCE_INLINE PxU32 | getBVHStructures (PxBVHStructure **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const |
| PX_FORCE_INLINE PxShape * | createShape (const PxGeometry &geometry, const PxMaterial &material, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE) |
| Creates a shape which may be attached to multiple actors. | |
| PX_FORCE_INLINE PxShape * | createShape (const PxGeometry &geometry, const PxFEMSoftBodyMaterial &material, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE) |
| Creates a shape which may be attached to one or more softbody actors. | |
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) |
Static Public Member Functions | |
| static NpPhysics * | createInstance (PxU32 version, PxFoundation &foundation, const PxTolerancesScale &scale, bool trackOutstandingAllocations, physx::pvdsdk::PsPvd *pvd, physx::PxOmniPvd *omniPvd) |
| static PxU32 | releaseInstance () |
| static NpPhysics & | getInstance () |
| static void | initOffsetTables (PxvOffsetTable &pxvOffsetTable) |
Static Public Attributes | |
| static bool | apiReentryLock = false |
Friends | |
| class | NpCollection |
|
virtual |
Creates an aggregate with the specified maximum size and filtering hint.
The previous API used "bool enableSelfCollision" which should now silently evaluates to a PxAggregateType::eGENERIC aggregate with its self-collision bit.
Use PxAggregateType::eSTATIC or PxAggregateType::eKINEMATIC for aggregates that will only contain static or kinematic actors. This provides faster filtering when used in combination with PxPairFilteringMode.
| [in] | maxActor | The maximum number of actors that may be placed in the aggregate. |
| [in] | maxShape | The maximum number of shapes that may be placed in the aggregate. |
| [in] | filterHint | The aggregate's filtering hint. |
Implements physx::PxPhysics.
|
virtual |
Creates a reduced-coordinate articulation with all fields initialized to their default values.
Implements physx::PxPhysics.
|
virtual |
Create a buffer for reading and writing data across host and device memory spaces.
| [in] | byteSize | The size of the buffer in bytes. |
| [in] | bufferType | The memory space of the buffer. |
| [in] | cudaContextManager | The PxCudaContextManager this buffer is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a bounding volume hierarchy.
| [in] | stream | The stream to load the BVH from. |
Implements physx::PxPhysics.
|
virtual |
Creates a constraint shader.
| [in] | actor0 | The first actor |
| [in] | actor1 | The second actor |
| [in] | connector | The connector object, which the SDK uses to communicate with the infrastructure for the constraint |
| [in] | shaders | The shader functions for the constraint |
| [in] | dataSize | The size of the data block for the shader |
Implements physx::PxPhysics.
|
virtual |
Creates a convex mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The stream to load the convex mesh from. |
Implements physx::PxPhysics.
|
virtual |
Creates a new material for custom particle systems.
| [in] | gpuBuffer | A pointer to a GPU buffer containing material parameters. |
Implements physx::PxPhysics.
|
virtual |
Creates a customizable particle system to simulate effects that are not supported by PhysX natively (e.g. molecular dynamics).
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
| [in] | maxNeighborhood | The maximum number of particles considered in neighborhood-based particle interaction calculations (e.g. fluid density constraints). |
Implements physx::PxPhysics.
|
virtual |
Creates a FEM-based cloth with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a new FEM cloth material with certain default properties.
| [in] | youngs | The young's modulus |
| [in] | poissons | The poissons's ratio |
| [in] | dynamicFriction | The dynamic friction coefficient |
Implements physx::PxPhysics.
|
virtual |
Creates a new FEM soft body material with certain default properties.
| [in] | youngs | The young's modulus |
| [in] | poissons | The poissons's ratio |
| [in] | dynamicFriction | The dynamic friction coefficient |
Implements physx::PxPhysics.
|
virtual |
Creates a new FLIP material with certain default properties.
| [in] | friction | The friction parameter |
| [in] | damping | The velocity damping parameter |
| [in] | adhesion | The maximum velocity magnitude of particles |
| [in] | viscosity | The viscosity parameter |
| [in] | gravityScale | The gravity scale |
Implements physx::PxPhysics.
|
virtual |
Creates a particle system with a fluid-implicit particle solver (FLIP).
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a hair system with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a heightfield object from previously cooked stream.
This can then be instanced into #PxShape objects.
| [in] | stream | The heightfield mesh stream. |
Implements physx::PxPhysics.
|
virtual |
Creates a new rigid body material with certain default properties.
| [in] | staticFriction | The coefficient of static friction |
| [in] | dynamicFriction | The coefficient of dynamic friction |
| [in] | restitution | The coefficient of restitution |
Implements physx::PxPhysics.
|
virtual |
Creates a new MPM material with certain default properties.
| [in] | friction | The friction parameter |
| [in] | damping | The velocity damping parameter |
| [in] | adhesion | The maximum velocity magnitude of particles |
| [in] | isPlastic | True if plastic |
| [in] | youngsModulus | The Young's modulus |
| [in] | poissons | The Poissons's ratio |
| [in] | hardening | The hardening parameter |
| [in] | criticalCompression | The critical compression parameter |
| [in] | criticalStretch | The critical stretch parameter |
| [in] | tensileDamageSensitivity | The tensile damage sensitivity parameter |
| [in] | compressiveDamageSensitivity | The compressive damage sensitivity parameter |
| [in] | attractiveForceResidual | The attractive force residual parameter |
| [in] | gravityScale | The gravity scale |
Implements physx::PxPhysics.
|
virtual |
Creates a particle system with a material-point-method solver (MPM).
A MPM particle system can be used to simulate fluid dynamics and deformable body effects using particles.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implements physx::PxPhysics.
|
virtual |
Create a particle buffer for fluid dynamics with diffuse particles. Diffuse particles are used to simulate fluid effects such as foam, spray and bubbles.
| [in] | maxParticles | The maximum number of particles in this buffer. |
| [in] | maxVolumes | The maximum number of volumes in this buffer. See #PxParticleVolume. |
| [in] | maxDiffuseParticles | The max number of diffuse particles int this buffer. |
| [in] | cudaContextManager | The PxCudaContextManager this buffer is tied to. |
Implements physx::PxPhysics.
|
virtual |
Create particle buffer to simulate fluid/granular material.
| [in] | maxParticles | The maximum number of particles in this buffer. |
| [in] | maxVolumes | The maximum number of volumes in this buffer. See PxParticleVolume. |
| [in] | cudaContextManager | The PxCudaContextManager this buffer is tied to. |
Implements physx::PxPhysics.
|
virtual |
Create a particle buffer to simulate particle cloth.
| [in] | maxParticles | The maximum number of particles in this buffer. |
| [in] | maxNumVolumes | The maximum number of volumes in this buffer. See #PxParticleVolume. |
| [in] | maxNumCloths | The maximum number of cloths in this buffer. See #PxParticleCloth. |
| [in] | maxNumTriangles | The maximum number of triangles for aerodynamics. |
| [in] | maxNumSprings | The maximum number of springs to connect particles. See #PxParticleSpring. |
| [in] | cudaContextManager | The PxCudaContextManager this buffer is tied to. |
Implements physx::PxPhysics.
|
virtual |
Create a particle buffer to simulate rigid bodies using shape matching with particles.
| [in] | maxParticles | The maximum number of particles in this buffer. |
| [in] | maxNumVolumes | The maximum number of volumes in this buffer. See #PxParticleVolume. |
| [in] | maxNumRigids | The maximum number of rigid bodies this buffer is used to simulate. |
| [in] | cudaContextManager | The PxCudaContextManager this buffer is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a new PBD material with certain default properties.
| [in] | friction | The friction parameter |
| [in] | damping | The velocity damping parameter |
| [in] | adhesion | The adhesion parameter |
| [in] | viscosity | The viscosity parameter |
| [in] | vorticityConfinement | The vorticity confinement coefficient |
| [in] | surfaceTension | The surface tension coefficient |
| [in] | cohesion | The cohesion parameter |
| [in] | lift | The lift parameter |
| [in] | drag | The drag parameter |
| [in] | cflCoefficient | The Courant-Friedrichs-Lewy(cfl) coefficient |
| [in] | gravityScale | The gravity scale |
Implements physx::PxPhysics.
|
virtual |
Creates a particle system with a position-based dynamics (PBD) solver.
A PBD particle system can be used to simulate particle systems with fluid and granular particles. It also allows simulating cloth using mass-spring constraints and rigid bodies by shape matching the bodies with particles.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
| [in] | maxNeighborhood | The maximum number of particles considered in neighborhood-based particle interaction calculations (e.g. fluid density constraints). |
Implements physx::PxPhysics.
|
virtual |
Creates a pruning structure from actors.
| [in] | actors | Array of actors to add to the pruning structure. Must be non NULL. |
| [in] | nbActors | Number of actors in the array. Must be >0. |
Implements physx::PxPhysics.
|
virtual |
Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.
| [in] | pose | The initial pose of the actor. Must be a valid transform. |
Implements physx::PxPhysics.
|
virtual |
Creates a static rigid actor with the specified pose and all other fields initialized to their default values.
| [in] | pose | The initial pose of the actor. Must be a valid transform. |
Implements physx::PxPhysics.
|
virtual |
Creates a scene.
| [in] | sceneDesc | Scene descriptor. See #PxSceneDesc |
Implements physx::PxPhysics.
|
virtual |
Implements physx::PxPhysics.
|
virtual |
Implements physx::PxPhysics.
|
virtual |
Creates a shape which may be attached to multiple actors.
The shape will be created with a reference count of 1.
| [in] | geometry | The geometry for the shape |
| [in] | materials | The materials for the shape |
| [in] | materialCount | The number of materials |
| [in] | isExclusive | Whether this shape is exclusive to a single actor or may be shared |
| [in] | shapeFlags | The PxShapeFlags to be set |
Implements physx::PxPhysics.
|
virtual |
Creates a FEM-based soft body with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implements physx::PxPhysics.
|
virtual |
Creates a softbody mesh object.
| [in] | stream | The softbody mesh stream. |
Implements physx::PxPhysics.
|
virtual |
Creates a tetrahedron mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The tetrahedron mesh stream. |
Implements physx::PxPhysics.
|
virtual |
Creates a triangle mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The triangle mesh stream. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of bounding volume hierarchy pointers to a user buffer.
Returns the number of pointers written.
The ordering of the BVHs in the array is not specified.
| [out] | userBuffer | The buffer to receive BVH pointers. |
| [in] | bufferSize | The number of BVH pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first BVH pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of convex mesh pointers to a user buffer.
Returns the number of pointers written.
The ordering of the convex meshes in the array is not specified.
| [out] | userBuffer | The buffer to receive convex mesh pointers. |
| [in] | bufferSize | The number of convex mesh pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first convex mesh pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of custom material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of FEM cloth material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of FEM soft body material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of FLIP material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Retrieves the Foundation instance.
Implements physx::PxPhysics.
|
virtual |
Writes the array of heightfield pointers to a user buffer.
Returns the number of pointers written.
The ordering of the heightfields in the array is not specified.
| [out] | userBuffer | The buffer to receive heightfield pointers. |
| [in] | bufferSize | The number of heightfield pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first heightfield pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of rigid body material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of MPM material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Return the number of bounding volume hierarchies that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of convex meshes that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of custom materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of FEM cloth materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of FEM soft body materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of FLIP materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of heightfields that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of rigid body materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of MPM materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of PBD materials that currently exist.
Implements physx::PxPhysics.
|
virtual |
Gets number of created scenes.
Implements physx::PxPhysics.
|
virtual |
Return the number of shapes that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of tetrahedron meshes that currently exist.
Implements physx::PxPhysics.
|
virtual |
Return the number of triangle meshes that currently exist.
Implements physx::PxPhysics.
|
virtual |
Retrieves the PxOmniPvd instance if there is one registered with PxPhysics.
Implements physx::PxPhysics.
|
virtual |
Writes the array of PBD material pointers to a user buffer.
Returns the number of pointers written.
The ordering of the materials in the array is not specified.
| [out] | userBuffer | The buffer to receive material pointers. |
| [in] | bufferSize | The number of material pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first material pointer to be retrieved. |
Implements physx::PxPhysics.
|
inlinevirtual |
Gets PxPhysics object insertion interface.
The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
Implements physx::PxPhysics.
|
virtual |
Writes the array of scene pointers to a user buffer.
Returns the number of pointers written.
The ordering of the scene pointers in the array is not specified.
| [out] | userBuffer | The buffer to receive scene pointers. |
| [in] | bufferSize | The number of scene pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first scene pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Writes the array of shape pointers to a user buffer.
Returns the number of pointers written.
The ordering of the shapes in the array is not specified.
| [out] | userBuffer | The buffer to receive shape pointers. |
| [in] | bufferSize | The number of shape pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first shape pointer to be retrieved |
Implements physx::PxPhysics.
|
virtual |
Writes the array of tetrahedron mesh pointers to a user buffer.
Returns the number of pointers written.
The ordering of the tetrahedron meshes in the array is not specified.
| [out] | userBuffer | The buffer to receive tetrahedron mesh pointers. |
| [in] | bufferSize | The number of tetrahedron mesh pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first mesh pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Returns the simulation tolerance parameters.
Implements physx::PxPhysics.
|
virtual |
Writes the array of triangle mesh pointers to a user buffer.
Returns the number of pointers written.
The ordering of the triangle meshes in the array is not specified.
| [out] | userBuffer | The buffer to receive triangle mesh pointers. |
| [in] | bufferSize | The number of triangle mesh pointers which can be stored in the buffer. |
| [in] | startIndex | Index of first mesh pointer to be retrieved. |
Implements physx::PxPhysics.
|
virtual |
Register a deletion listener. Listeners will be called whenever an object is deleted.
It is illegal to register or unregister a deletion listener while deletions are being processed.
| [in] | observer | Observer object to send notifications to. |
| [in] | deletionEvents | The deletion event types to get notified of. |
| [in] | restrictedObjectSet | If false, the deletion listener will get events from all objects, else the objects to receive events from have to be specified explicitly through registerDeletionListenerObjects. |
Implements physx::PxPhysics.
|
virtual |
Register specific objects for deletion events.
This method allows for a deletion listener to limit deletion events to specific objects only.
| [in] | observer | Observer object to send notifications to. |
| [in] | observables | List of objects for which to receive deletion events. Only PhysX core objects are supported. In the case of PxJoint objects, the underlying PxConstraint can be used to get the events. |
| [in] | observableCount | Size of the observables list. |
Implements physx::PxPhysics.
|
virtual |
Destroys the instance it is called on.
Use this release method to destroy an instance of this class. Be sure to not keep a reference to this object after calling release. Avoid release calls while a scene is simulating (in between simulate() and fetchResults() calls).
Note that this must be called once for each prior call to PxCreatePhysics, as there is a reference counter. Also note that you mustn't destroy the PxFoundation instance (holding the allocator, error callback etc.) until after the reference count reaches 0 and the SDK is actually removed.
Releasing an SDK will also release any objects created through it (scenes, triangle meshes, convex meshes, heightfields, shapes etc.), provided the user hasn't already done so.
Implements physx::PxPhysics.
|
virtual |
Unregister a deletion listener.
It is illegal to register or unregister a deletion listener while deletions are being processed.
| [in] | observer | Observer object to stop sending notifications to. |
Implements physx::PxPhysics.
|
virtual |
Unregister specific objects for deletion events.
This method allows to clear previously registered objects for a deletion listener (see registerDeletionListenerObjects()).
| [in] | observer | Observer object to stop sending notifications to. |
| [in] | observables | List of objects for which to not receive deletion events anymore. |
| [in] | observableCount | Size of the observables list. |
Implements physx::PxPhysics.