|
RavEngine
|
Abstract singleton factory class used for instancing objects in the Physics SDK. More...
#include <PxPhysics.h>
Public Member Functions | |
Basics | |
| virtual void | release ()=0 |
| Destroys the instance it is called on. | |
| virtual PxFoundation & | getFoundation ()=0 |
| Retrieves the Foundation instance. | |
| virtual PxOmniPvd * | getOmniPvd ()=0 |
| Retrieves the PxOmniPvd instance if there is one registered with PxPhysics. | |
| virtual PxAggregate * | createAggregate (PxU32 maxActor, PxU32 maxShape, PxAggregateFilterHint filterHint)=0 |
| Creates an aggregate with the specified maximum size and filtering hint. | |
| PX_FORCE_INLINE PX_DEPRECATED PxAggregate * | createAggregate (PxU32 maxActor, PxAggregateFilterHint filterHint) |
| Creates an aggregate with the specified maximum size and filtering hint. | |
| virtual const PxTolerancesScale & | getTolerancesScale () const =0 |
| Returns the simulation tolerance parameters. | |
Meshes | |
| virtual PxTriangleMesh * | createTriangleMesh (PxInputStream &stream)=0 |
| Creates a triangle mesh object. | |
| virtual PxU32 | getNbTriangleMeshes () const =0 |
| Return the number of triangle meshes that currently exist. | |
| virtual PxU32 | getTriangleMeshes (PxTriangleMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of triangle mesh pointers to a user buffer. | |
Tetrahedron Meshes | |
| virtual PxTetrahedronMesh * | createTetrahedronMesh (PxInputStream &stream)=0 |
| Creates a tetrahedron mesh object. | |
| virtual PxSoftBodyMesh * | createSoftBodyMesh (PxInputStream &stream)=0 |
| Creates a softbody mesh object. | |
| virtual PxU32 | getNbTetrahedronMeshes () const =0 |
| Return the number of tetrahedron meshes that currently exist. | |
| virtual PxU32 | getTetrahedronMeshes (PxTetrahedronMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of tetrahedron mesh pointers to a user buffer. | |
| virtual PxHeightField * | createHeightField (PxInputStream &stream)=0 |
| Creates a heightfield object from previously cooked stream. | |
| virtual PxU32 | getNbHeightFields () const =0 |
| Return the number of heightfields that currently exist. | |
| virtual PxU32 | getHeightFields (PxHeightField **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of heightfield pointers to a user buffer. | |
| virtual PxConvexMesh * | createConvexMesh (PxInputStream &stream)=0 |
| Creates a convex mesh object. | |
| virtual PxU32 | getNbConvexMeshes () const =0 |
| Return the number of convex meshes that currently exist. | |
| virtual PxU32 | getConvexMeshes (PxConvexMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of convex mesh pointers to a user buffer. | |
| virtual PxBVH * | createBVH (PxInputStream &stream)=0 |
| Creates a bounding volume hierarchy. | |
| PX_DEPRECATED PX_FORCE_INLINE PxBVH * | createBVHStructure (PxInputStream &stream) |
| virtual PxU32 | getNbBVHs () const =0 |
| Return the number of bounding volume hierarchies that currently exist. | |
| PX_DEPRECATED PX_FORCE_INLINE PxU32 | getNbBVHStructures () const |
| virtual PxU32 | getBVHs (PxBVH **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of bounding volume hierarchy pointers to a user buffer. | |
| PX_DEPRECATED PX_FORCE_INLINE PxU32 | getBVHStructures (PxBVHStructure **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const |
Scenes | |
| virtual PxScene * | createScene (const PxSceneDesc &sceneDesc)=0 |
| Creates a scene. | |
| virtual PxU32 | getNbScenes () const =0 |
| Gets number of created scenes. | |
| virtual PxU32 | getScenes (PxScene **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of scene pointers to a user buffer. | |
Actors | |
| virtual PxRigidStatic * | createRigidStatic (const PxTransform &pose)=0 |
| Creates a static rigid actor with the specified pose and all other fields initialized to their default values. | |
| virtual PxRigidDynamic * | createRigidDynamic (const PxTransform &pose)=0 |
| Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values. | |
| virtual PxPruningStructure * | createPruningStructure (PxRigidActor *const *actors, PxU32 nbActors)=0 |
| Creates a pruning structure from actors. | |
Shapes | |
| 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. | |
| virtual PxShape * | createShape (const PxGeometry &geometry, PxMaterial *const *materials, PxU16 materialCount, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE)=0 |
| Creates a shape which may be attached to multiple actors. | |
| virtual PxShape * | createShape (const PxGeometry &geometry, PxFEMSoftBodyMaterial *const *materials, PxU16 materialCount, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE)=0 |
| virtual PxShape * | createShape (const PxGeometry &geometry, PxFEMClothMaterial *const *materials, PxU16 materialCount, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE)=0 |
| virtual PxU32 | getNbShapes () const =0 |
| Return the number of shapes that currently exist. | |
| virtual PxU32 | getShapes (PxShape **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of shape pointers to a user buffer. | |
Constraints and Articulations | |
| virtual PxConstraint * | createConstraint (PxRigidActor *actor0, PxRigidActor *actor1, PxConstraintConnector &connector, const PxConstraintShaderTable &shaders, PxU32 dataSize)=0 |
| Creates a constraint shader. | |
| virtual PxArticulationReducedCoordinate * | createArticulationReducedCoordinate ()=0 |
| Creates a reduced-coordinate articulation with all fields initialized to their default values. | |
| virtual PxFEMCloth * | createFEMCloth (PxCudaContextManager &cudaContextManager)=0 |
| Creates a FEM-based cloth with all fields initialized to their default values. | |
| virtual PxSoftBody * | createSoftBody (PxCudaContextManager &cudaContextManager)=0 |
| Creates a FEM-based soft body with all fields initialized to their default values. | |
| virtual PxHairSystem * | createHairSystem (PxCudaContextManager &cudaContextManager)=0 |
| Creates a hair system with all fields initialized to their default values. | |
| virtual PxPBDParticleSystem * | createPBDParticleSystem (PxCudaContextManager &cudaContextManager, PxU32 maxNeighborhood=96)=0 |
| Creates a particle system with a position-based dynamics (PBD) solver. | |
| virtual PxFLIPParticleSystem * | createFLIPParticleSystem (PxCudaContextManager &cudaContextManager)=0 |
| Creates a particle system with a fluid-implicit particle solver (FLIP). | |
| virtual PxMPMParticleSystem * | createMPMParticleSystem (PxCudaContextManager &cudaContextManager)=0 |
| Creates a particle system with a material-point-method solver (MPM). | |
| virtual PxCustomParticleSystem * | createCustomParticleSystem (PxCudaContextManager &cudaContextManager, PxU32 maxNeighborhood)=0 |
| 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)=0 |
| Create a buffer for reading and writing data across host and device memory spaces. | |
| virtual PxParticleBuffer * | createParticleBuffer (PxU32 maxParticles, PxU32 maxVolumes, PxCudaContextManager *cudaContextManager)=0 |
| Create particle buffer to simulate fluid/granular material. | |
| virtual PxParticleAndDiffuseBuffer * | createParticleAndDiffuseBuffer (PxU32 maxParticles, PxU32 maxVolumes, PxU32 maxDiffuseParticles, PxCudaContextManager *cudaContextManager)=0 |
| 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 *cudaContextManager)=0 |
| Create a particle buffer to simulate particle cloth. | |
| virtual PxParticleRigidBuffer * | createParticleRigidBuffer (PxU32 maxParticles, PxU32 maxNumVolumes, PxU32 maxNumRigids, PxCudaContextManager *cudaContextManager)=0 |
| Create a particle buffer to simulate rigid bodies using shape matching with particles. | |
Materials | |
| virtual PxMaterial * | createMaterial (PxReal staticFriction, PxReal dynamicFriction, PxReal restitution)=0 |
| Creates a new rigid body material with certain default properties. | |
| virtual PxU32 | getNbMaterials () const =0 |
| Return the number of rigid body materials that currently exist. | |
| virtual PxU32 | getMaterials (PxMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of rigid body material pointers to a user buffer. | |
| virtual PxFEMSoftBodyMaterial * | createFEMSoftBodyMaterial (PxReal youngs, PxReal poissons, PxReal dynamicFriction)=0 |
| Creates a new FEM soft body material with certain default properties. | |
| virtual PxU32 | getNbFEMSoftBodyMaterials () const =0 |
| Return the number of FEM soft body materials that currently exist. | |
| virtual PxU32 | getFEMSoftBodyMaterials (PxFEMSoftBodyMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of FEM soft body material pointers to a user buffer. | |
| virtual PxFEMClothMaterial * | createFEMClothMaterial (PxReal youngs, PxReal poissons, PxReal dynamicFriction)=0 |
| Creates a new FEM cloth material with certain default properties. | |
| virtual PxU32 | getNbFEMClothMaterials () const =0 |
| Return the number of FEM cloth materials that currently exist. | |
| virtual PxU32 | getFEMClothMaterials (PxFEMClothMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| 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=1.f, PxReal gravityScale=1.f)=0 |
| Creates a new PBD material with certain default properties. | |
| virtual PxU32 | getNbPBDMaterials () const =0 |
| Return the number of PBD materials that currently exist. | |
| virtual PxU32 | getPBDMaterials (PxPBDMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of PBD material pointers to a user buffer. | |
| virtual PxFLIPMaterial * | createFLIPMaterial (PxReal friction, PxReal damping, PxReal adhesion, PxReal viscosity, PxReal gravityScale=1.f)=0 |
| Creates a new FLIP material with certain default properties. | |
| virtual PxU32 | getNbFLIPMaterials () const =0 |
| Return the number of FLIP materials that currently exist. | |
| virtual PxU32 | getFLIPMaterials (PxFLIPMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of FLIP material pointers to a user buffer. | |
| virtual PxMPMMaterial * | createMPMMaterial (PxReal friction, PxReal damping, PxReal adhesion, bool isPlastic, PxReal youngsModulus, PxReal poissons, PxReal hardening, PxReal criticalCompression, PxReal criticalStretch, PxReal tensileDamageSensitivity, PxReal compressiveDamageSensitivity, PxReal attractiveForceResidual, PxReal gravityScale=1.0f)=0 |
| Creates a new MPM material with certain default properties. | |
| virtual PxU32 | getNbMPMMaterials () const =0 |
| Return the number of MPM materials that currently exist. | |
| virtual PxU32 | getMPMMaterials (PxMPMMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of MPM material pointers to a user buffer. | |
| virtual PxCustomMaterial * | createCustomMaterial (void *gpuBuffer)=0 |
| Creates a new material for custom particle systems. | |
| virtual PxU32 | getNbCustomMaterials () const =0 |
| Return the number of custom materials that currently exist. | |
| virtual PxU32 | getCustomMaterials (PxCustomMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0 |
| Writes the array of custom material pointers to a user buffer. | |
Deletion Listeners | |
| virtual void | registerDeletionListener (PxDeletionListener &observer, const PxDeletionEventFlags &deletionEvents, bool restrictedObjectSet=false)=0 |
| Register a deletion listener. Listeners will be called whenever an object is deleted. | |
| virtual void | unregisterDeletionListener (PxDeletionListener &observer)=0 |
| Unregister a deletion listener. | |
| virtual void | registerDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount)=0 |
| Register specific objects for deletion events. | |
| virtual void | unregisterDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount)=0 |
| Unregister specific objects for deletion events. | |
| virtual PxInsertionCallback & | getPhysicsInsertionCallback ()=0 |
| Gets PxPhysics object insertion interface. | |
Abstract singleton factory class used for instancing objects in the Physics SDK.
In addition you can use PxPhysics to set global parameters which will effect all scenes and create objects that can be shared across multiple scenes.
You can get an instance of this class by calling PxCreateBasePhysics() or PxCreatePhysics() with pre-registered modules.
|
inline |
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] | filterHint | The aggregate's filtering hint. |
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a reduced-coordinate articulation with all fields initialized to their default values.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a bounding volume hierarchy.
| [in] | stream | The stream to load the BVH from. |
Implemented in physx::NpPhysics.
|
inline |
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a convex mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The stream to load the convex mesh from. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a new material for custom particle systems.
| [in] | gpuBuffer | A pointer to a GPU buffer containing material parameters. |
Implemented in physx::NpPhysics.
|
pure 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). |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a FEM-based cloth with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a particle system with a fluid-implicit particle solver (FLIP).
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a hair system with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a heightfield object from previously cooked stream.
This can then be instanced into #PxShape objects.
| [in] | stream | The heightfield mesh stream. |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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). |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a scene.
| [in] | sceneDesc | Scene descriptor. See #PxSceneDesc |
Implemented in physx::NpPhysics.
|
inline |
Creates a shape which may be attached to one or more softbody actors.
The shape will be created with a reference count of 1.
| [in] | geometry | The geometry for the shape |
| [in] | material | The material for the shape |
| [in] | isExclusive | Whether this shape is exclusive to a single actor or maybe be shared |
| [in] | shapeFlags | The PxShapeFlags to be set |
|
inline |
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] | material | The material for the shape |
| [in] | isExclusive | Whether this shape is exclusive to a single actor or maybe be shared |
| [in] | shapeFlags | The PxShapeFlags to be set |
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a FEM-based soft body with all fields initialized to their default values.
| [in] | cudaContextManager | The PxCudaContextManager this instance is tied to. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a softbody mesh object.
| [in] | stream | The softbody mesh stream. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a tetrahedron mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The tetrahedron mesh stream. |
Implemented in physx::NpPhysics.
|
pure virtual |
Creates a triangle mesh object.
This can then be instanced into #PxShape objects.
| [in] | stream | The triangle mesh stream. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
inline |
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Retrieves the Foundation instance.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of bounding volume hierarchies that currently exist.
Implemented in physx::NpPhysics.
|
inline |
|
pure virtual |
Return the number of convex meshes that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of custom materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of FEM cloth materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of FEM soft body materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of FLIP materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of heightfields that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of rigid body materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of MPM materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of PBD materials that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Gets number of created scenes.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of shapes that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of tetrahedron meshes that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Return the number of triangle meshes that currently exist.
Implemented in physx::NpPhysics.
|
pure virtual |
Retrieves the PxOmniPvd instance if there is one registered with PxPhysics.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Gets PxPhysics object insertion interface.
The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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 |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure virtual |
Returns the simulation tolerance parameters.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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.
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.
|
pure 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. |
Implemented in physx::NpPhysics.