List of all members
PxPhysics Class Referenceabstract

Abstract singleton factory class used for instancing objects in the Physics SDK. More...

#include <PxPhysics.h>

Public Member Functions

Basics
virtual ~PxPhysics ()
 
virtual void release ()=0
 Destroys the instance it is called on. More...
 
virtual PxFoundationgetFoundation ()=0
 Retrieves the Foundation instance. More...
 
virtual PxVisualDebuggergetVisualDebugger ()=0
 Retrieves the PhysX Visual Debugger. More...
 
virtual
PxVisualDebuggerConnectionManager * 
getPvdConnectionManager ()=0
 
virtual PxProfileZoneManager * getProfileZoneManager ()=0
 
virtual PxAggregatecreateAggregate (PxU32 maxSize, bool enableSelfCollision)=0
 Creates an aggregate with the specified maximum size and selfCollision property. More...
 
virtual const PxTolerancesScalegetTolerancesScale () const =0
 Returns the simulation tolerance parameters. More...
 
Meshes
virtual PxTriangleMeshcreateTriangleMesh (PxInputStream &stream)=0
 Creates a triangle mesh object. More...
 
virtual PxU32 getNbTriangleMeshes () const =0
 Return the number of triangle meshes that currently exist. More...
 
virtual PxU32 getTriangleMeshes (PxTriangleMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of triangle mesh pointers to a user buffer. More...
 
virtual PX_DEPRECATED
PxHeightField
createHeightField (const PxHeightFieldDesc &heightFieldDesc)=0
 Creates a PxHeightField object. More...
 
virtual PxHeightFieldcreateHeightField (PxInputStream &stream)=0
 Creates a heightfield object from previously cooked stream. More...
 
virtual PxU32 getNbHeightFields () const =0
 Return the number of heightfields that currently exist. More...
 
virtual PxU32 getHeightFields (PxHeightField **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of heightfield pointers to a user buffer. More...
 
virtual PxConvexMeshcreateConvexMesh (PxInputStream &stream)=0
 Creates a convex mesh object. More...
 
virtual PxU32 getNbConvexMeshes () const =0
 Return the number of convex meshes that currently exist. More...
 
virtual PxU32 getConvexMeshes (PxConvexMesh **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of convex mesh pointers to a user buffer. More...
 
virtual PxClothFabriccreateClothFabric (PxInputStream &stream)=0
 Creates a cloth fabric object. More...
 
virtual PxClothFabriccreateClothFabric (const PxClothFabricDesc &desc)=0
 Creates a cloth fabric object from particle connectivity and restlength information. More...
 
virtual PxU32 getNbClothFabrics () const =0
 Return the number of cloth fabrics that currently exist. More...
 
virtual PxU32 getClothFabrics (PxClothFabric **userBuffer, PxU32 bufferSize) const =0
 Writes the array of cloth fabrics to a user buffer. More...
 
Scenes
virtual PxScenecreateScene (const PxSceneDesc &sceneDesc)=0
 Creates a scene. More...
 
virtual PxU32 getNbScenes () const =0
 Gets number of created scenes. More...
 
virtual PxU32 getScenes (PxScene **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of scene pointers to a user buffer. More...
 
Actors
virtual PxRigidStaticcreateRigidStatic (const PxTransform &pose)=0
 Creates a static rigid actor with the specified pose and all other fields initialized to their default values. More...
 
virtual PxRigidDynamiccreateRigidDynamic (const PxTransform &pose)=0
 Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values. More...
 
virtual PxParticleSystemcreateParticleSystem (PxU32 maxParticles, bool perParticleRestOffset=false)=0
 Creates a particle system. More...
 
virtual PxParticleFluidcreateParticleFluid (PxU32 maxParticles, bool perParticleRestOffset=false)=0
 Creates a particle fluid. More...
 
virtual PxClothcreateCloth (const PxTransform &globalPose, PxClothFabric &fabric, const PxClothParticle *particles, PxClothFlags flags)=0
 Creates a cloth. More...
 
Shapes
PX_FORCE_INLINE PxShapecreateShape (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. More...
 
virtual PxShapecreateShape (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. More...
 
virtual PxU32 getNbShapes () const =0
 Return the number of shapes that currently exist. More...
 
virtual PxU32 getShapes (PxShape **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of shape pointers to a user buffer. More...
 
Constraints and Articulations
virtual PxConstraintcreateConstraint (PxRigidActor *actor0, PxRigidActor *actor1, PxConstraintConnector &connector, const PxConstraintShaderTable &shaders, PxU32 dataSize)=0
 Creates a constraint shader. More...
 
virtual PxArticulationcreateArticulation ()=0
 Creates an articulation with all fields initialized to their default values. More...
 
Materials
virtual PxMaterialcreateMaterial (PxReal staticFriction, PxReal dynamicFriction, PxReal restitution)=0
 Creates a new material with default properties. More...
 
virtual PxU32 getNbMaterials () const =0
 Return the number of materials that currently exist. More...
 
virtual PxU32 getMaterials (PxMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Writes the array of material pointers to a user buffer. More...
 
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. More...
 
virtual void unregisterDeletionListener (PxDeletionListener &observer)=0
 Unregister a deletion listener. More...
 
virtual void registerDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount)=0
 Register specific objects for deletion events. More...
 
virtual void unregisterDeletionListenerObjects (PxDeletionListener &observer, const PxBase *const *observables, PxU32 observableCount)=0
 Unregister specific objects for deletion events. More...
 
virtual
PxPhysicsInsertionCallback
getPhysicsInsertionCallback ()=0
 Gets PxPhysics object insertion interface. More...
 

Detailed Description

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.

See Also
PxCreatePhysics() PxCreateBasePhysics() PxScene PxVisualizationParameter

Constructor & Destructor Documentation

virtual PxPhysics::~PxPhysics ( )
inlinevirtual

Member Function Documentation

virtual PxAggregate* PxPhysics::createAggregate ( PxU32  maxSize,
bool  enableSelfCollision 
)
pure virtual

Creates an aggregate with the specified maximum size and selfCollision property.

Parameters
[in]maxSizethe maximum number of actors that may be placed in the aggregate. This value must not exceed 128, otherwise NULL will be returned.
[in]enableSelfCollisionwhether the aggregate supports self-collision
Returns
The new aggregate.
See Also
PxAggregate
virtual PxArticulation* PxPhysics::createArticulation ( )
pure virtual

Creates an articulation with all fields initialized to their default values.

Returns
the new articulation
See Also
PxArticulation, PxRegisterArticulations
virtual PxCloth* PxPhysics::createCloth ( const PxTransform globalPose,
PxClothFabric fabric,
const PxClothParticle particles,
PxClothFlags  flags 
)
pure virtual

Creates a cloth.

Parameters
globalPoseThe world space transform of the cloth.
fabricThe fabric the cloth should use.
particlesParticle definition buffer. The size of the buffer has to match fabric.getNbParticles().
flagsCloth flags.
Returns
The new cloth.
See Also
PxCloth PxClothFabric PxClothFlags PxRegisterCloth
virtual PxClothFabric* PxPhysics::createClothFabric ( PxInputStream stream)
pure virtual

Creates a cloth fabric object.

This can then be instanced into PxCloth objects.

Parameters
[in]streamThe stream to load the cloth fabric from.
Returns
The new cloth fabric.
See Also
PxClothFabric PxClothFabric.release() PxInputStream PxCloth PxRegisterCloth
virtual PxClothFabric* PxPhysics::createClothFabric ( const PxClothFabricDesc desc)
pure virtual

Creates a cloth fabric object from particle connectivity and restlength information.

Note
The particle connectivity can be created using PxClothFabricCooker in extensions.

This can then be instanced into PxCloth objects.

Parameters
[in]descFabric descriptor, see PxClothFabricDesc.
Returns
The new cloth fabric.
See Also
PxClothFabric PxClothFabric.release() PxCloth
virtual PxConstraint* PxPhysics::createConstraint ( PxRigidActor actor0,
PxRigidActor actor1,
PxConstraintConnector connector,
const PxConstraintShaderTable shaders,
PxU32  dataSize 
)
pure virtual

Creates a constraint shader.

Note
A constraint shader will get added automatically to the scene the two linked actors belong to. Either, but not both, of actor0 and actor1 may be NULL to denote attachment to the world.
Parameters
[in]actor0the first actor
[in]actor1the second actor
[in]connectorthe connector object, which the SDK uses to communicate with the infrastructure for the constraint
[in]shadersthe shader functions for the constraint
[in]dataSizethe size of the data block for the shader
Returns
The new shader.
See Also
PxConstraint
virtual PxConvexMesh* PxPhysics::createConvexMesh ( PxInputStream stream)
pure virtual

Creates a convex mesh object.

This can then be instanced into PxShape objects.

Parameters
[in]streamThe stream to load the convex mesh from.
Returns
The new convex mesh.
See Also
PxConvexMesh PxConvexMesh.release() PxInputStream createTriangleMesh() PxConvexMeshGeometry PxShape
virtual PX_DEPRECATED PxHeightField* PxPhysics::createHeightField ( const PxHeightFieldDesc heightFieldDesc)
pure virtual

Creates a PxHeightField object.

Deprecated please use PxCooking::createHeightField

This can then be instanced into PxShape objects.

Parameters
[in]heightFieldDescThe descriptor to load the object from.
Returns
The new height field object.
See Also
PxHeightField PxHeightField.release() PxHeightFieldDesc PxHeightFieldGeometry PxShape PxRegisterHeightFields PxRegisterUnifiedHeightFields
virtual PxHeightField* PxPhysics::createHeightField ( PxInputStream stream)
pure virtual

Creates a heightfield object from previously cooked stream.

This can then be instanced into PxShape objects.

Parameters
[in]streamThe heightfield mesh stream.
Returns
The new heightfield.
See Also
PxHeightField PxHeightField.release() PxInputStream PxRegisterHeightFields PxRegisterUnifiedHeightFields
virtual PxMaterial* PxPhysics::createMaterial ( PxReal  staticFriction,
PxReal  dynamicFriction,
PxReal  restitution 
)
pure virtual

Creates a new material with default properties.

Returns
The new material.
Parameters
staticFrictionthe coefficient of static friction
dynamicFrictionthe coefficient of dynamic friction
restitutionthe coefficient of restitution
See Also
PxMaterial
virtual PxParticleFluid* PxPhysics::createParticleFluid ( PxU32  maxParticles,
bool  perParticleRestOffset = false 
)
pure virtual

Creates a particle fluid.

Parameters
maxParticlesthe maximum number of particles that may be placed in the particle fluid
perParticleRestOffsetwhether the ParticleFluid supports perParticleRestOffset
Returns
The new particle fluid.
See Also
PxParticleFluid PxRegisterParticles
virtual PxParticleSystem* PxPhysics::createParticleSystem ( PxU32  maxParticles,
bool  perParticleRestOffset = false 
)
pure virtual

Creates a particle system.

Parameters
maxParticlesthe maximum number of particles that may be placed in the particle system
perParticleRestOffsetwhether the ParticleSystem supports perParticleRestOffset
Returns
The new particle system.
See Also
PxParticleSystem PxRegisterParticles
virtual PxRigidDynamic* PxPhysics::createRigidDynamic ( const PxTransform pose)
pure virtual

Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.

Parameters
[in]posethe initial pose of the actor. Must be a valid transform
See Also
PxRigidDynamic
virtual PxRigidStatic* PxPhysics::createRigidStatic ( const PxTransform pose)
pure virtual

Creates a static rigid actor with the specified pose and all other fields initialized to their default values.

Parameters
[in]posethe initial pose of the actor. Must be a valid transform
See Also
PxRigidStatic
virtual PxScene* PxPhysics::createScene ( const PxSceneDesc sceneDesc)
pure virtual

Creates a scene.

Parameters
[in]sceneDescScene descriptor. See PxSceneDesc
Returns
The new scene object.
See Also
PxScene PxScene.release() PxSceneDesc
PX_FORCE_INLINE PxShape* PxPhysics::createShape ( const PxGeometry geometry,
const PxMaterial material,
bool  isExclusive = false,
PxShapeFlags  shapeFlags = PxShapeFlag::eVISUALIZATION | PxShapeFlag::eSCENE_QUERY_SHAPE | PxShapeFlag::eSIMULATION_SHAPE 
)
inline

Creates a shape which may be attached to multiple actors.

The shape will be created with a reference count of 1.

Parameters
[in]geometrythe geometry for the shape
[in]materialthe material for the shape
[in]isExclusivewhether this shape is exclusive to a single actor or maybe be shared
[in]shapeFlagsthe PxShapeFlags to be set

Shared shapes are not mutable when they are attached to an actor

See Also
PxShape
virtual PxShape* PxPhysics::createShape ( const PxGeometry geometry,
PxMaterial *const *  materials,
PxU16  materialCount,
bool  isExclusive = false,
PxShapeFlags  shapeFlags = PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE 
)
pure virtual

Creates a shape which may be attached to multiple actors.

The shape will be created with a reference count of 1.

Parameters
[in]geometrythe geometry for the shape
[in]materialsthe materials for the shape
[in]materialCountthe number of materials
[in]isExclusivewhether this shape is exclusive to a single actor or may be shared
[in]shapeFlagsthe PxShapeFlags to be set

Shared shapes are not mutable when they are attached to an actor

See Also
PxShape
virtual PxTriangleMesh* PxPhysics::createTriangleMesh ( PxInputStream stream)
pure virtual

Creates a triangle mesh object.

This can then be instanced into PxShape objects.

Parameters
[in]streamThe triangle mesh stream.
Returns
The new triangle mesh.
See Also
PxTriangleMesh PxMeshPreprocessingFlag PxTriangleMesh.release() PxInputStream PxTriangleMeshFlag
virtual PxU32 PxPhysics::getClothFabrics ( PxClothFabric **  userBuffer,
PxU32  bufferSize 
) const
pure virtual

Writes the array of cloth fabrics to a user buffer.

Returns the number of pointers written.

The ordering of the cloth fabrics in the array is not specified.

Parameters
[out]userBufferThe buffer to receive cloth fabric pointers.
[in]bufferSizeThe number of cloth fabric pointers which can be stored in the buffer.
Returns
The number of cloth fabric pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbClothFabrics() PxClothFabric
virtual PxU32 PxPhysics::getConvexMeshes ( PxConvexMesh **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
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.

Parameters
[out]userBufferThe buffer to receive convex mesh pointers.
[in]bufferSizeThe number of convex mesh pointers which can be stored in the buffer.
[in]startIndexIndex of first convex mesh pointer to be retrieved
Returns
The number of convex mesh pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbConvexMeshes() PxConvexMesh
virtual PxFoundation& PxPhysics::getFoundation ( )
pure virtual

Retrieves the Foundation instance.

Returns
A reference to the Foundation object.
virtual PxU32 PxPhysics::getHeightFields ( PxHeightField **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
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.

Parameters
[out]userBufferThe buffer to receive heightfield pointers.
[in]bufferSizeThe number of heightfield pointers which can be stored in the buffer.
[in]startIndexIndex of first heightfield pointer to be retrieved
Returns
The number of heightfield pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbHeightFields() PxHeightField
virtual PxU32 PxPhysics::getMaterials ( PxMaterial **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
pure virtual

Writes the array of material pointers to a user buffer.

Returns the number of pointers written.

The ordering of the materials in the array is not specified.

Parameters
[out]userBufferThe buffer to receive material pointers.
[in]bufferSizeThe number of material pointers which can be stored in the buffer.
[in]startIndexIndex of first material pointer to be retrieved
Returns
The number of material pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbMaterials() PxMaterial
virtual PxU32 PxPhysics::getNbClothFabrics ( ) const
pure virtual

Return the number of cloth fabrics that currently exist.

Returns
Number of cloth fabrics.
See Also
getClothFabrics()
virtual PxU32 PxPhysics::getNbConvexMeshes ( ) const
pure virtual

Return the number of convex meshes that currently exist.

Returns
Number of convex meshes.
See Also
getConvexMeshes()
virtual PxU32 PxPhysics::getNbHeightFields ( ) const
pure virtual

Return the number of heightfields that currently exist.

Returns
Number of heightfields.
See Also
getHeightFields()
virtual PxU32 PxPhysics::getNbMaterials ( ) const
pure virtual

Return the number of materials that currently exist.

Returns
Number of materials.
See Also
getMaterials()
virtual PxU32 PxPhysics::getNbScenes ( ) const
pure virtual

Gets number of created scenes.

Returns
The number of scenes created.
See Also
getScene()
virtual PxU32 PxPhysics::getNbShapes ( ) const
pure virtual

Return the number of shapes that currently exist.

Returns
Number of shapes.
See Also
getShapes()
virtual PxU32 PxPhysics::getNbTriangleMeshes ( ) const
pure virtual

Return the number of triangle meshes that currently exist.

Returns
Number of triangle meshes.
See Also
getTriangleMeshes()
virtual PxPhysicsInsertionCallback& PxPhysics::getPhysicsInsertionCallback ( )
pure virtual

Gets PxPhysics object insertion interface.

The insertion interface is needed ie. for PxCooking::createTriangleMesh, this allows runtime mesh creation. This is not adviced to do, please use offline cooking if possible.

See Also
PxCooking::createTriangleMesh PxCooking::createHeightfield
virtual PxProfileZoneManager* PxPhysics::getProfileZoneManager ( )
pure virtual
virtual PxVisualDebuggerConnectionManager* PxPhysics::getPvdConnectionManager ( )
pure virtual

The factory manager allows notifications when a new connection to pvd is made. It also allows the users to specify a scheme to handle the read-side of a network connection. By default, the SDK specifies that a thread gets launched which blocks reading on the network socket.

Returns
A valid manager if the SDK was compiled with PVD support. Null otherwise.
virtual PxU32 PxPhysics::getScenes ( PxScene **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
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.

Parameters
[out]userBufferThe buffer to receive scene pointers.
[in]bufferSizeThe number of scene pointers which can be stored in the buffer.
[in]startIndexIndex of first scene pointer to be retrieved
Returns
The number of scene pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbScenes() PxScene
virtual PxU32 PxPhysics::getShapes ( PxShape **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
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.

Parameters
[out]userBufferThe buffer to receive shape pointers.
[in]bufferSizeThe number of shape pointers which can be stored in the buffer.
[in]startIndexIndex of first shape pointer to be retrieved
Returns
The number of shape pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbShapes() PxShape
virtual const PxTolerancesScale& PxPhysics::getTolerancesScale ( ) const
pure virtual

Returns the simulation tolerance parameters.

Returns
The current simulation tolerance parameters.
virtual PxU32 PxPhysics::getTriangleMeshes ( PxTriangleMesh **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex = 0 
) const
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.

Parameters
[out]userBufferThe buffer to receive triangle mesh pointers.
[in]bufferSizeThe number of triangle mesh pointers which can be stored in the buffer.
[in]startIndexIndex of first mesh pointer to be retrieved
Returns
The number of triangle mesh pointers written to userBuffer, this should be less or equal to bufferSize.
See Also
getNbTriangleMeshes() PxTriangleMesh
virtual PxVisualDebugger* PxPhysics::getVisualDebugger ( )
pure virtual

Retrieves the PhysX Visual Debugger.

Returns
A pointer to the PxVisualDebugger. Can be NULL if PVD is not supported on this platform.
virtual void PxPhysics::registerDeletionListener ( PxDeletionListener observer,
const PxDeletionEventFlags deletionEvents,
bool  restrictedObjectSet = false 
)
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.

Note
By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use registerDeletionListenerObjects to restrict the received events to specific objects.
The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.
Parameters
[in]observerObserver object to send notifications to.
[in]deletionEventsThe deletion event types to get notified of.
[in]restrictedObjectSetIf false, the deletion listener will get events from all objects, else the objects to receive events from have to be specified explicitly through registerDeletionListenerObjects.
See Also
PxDeletionListener unregisterDeletionListener
virtual void PxPhysics::registerDeletionListenerObjects ( PxDeletionListener observer,
const PxBase *const *  observables,
PxU32  observableCount 
)
pure virtual

Register specific objects for deletion events.

This method allows for a deletion listener to limit deletion events to specific objects only.

Note
It is illegal to register or unregister objects while deletions are being processed.
The deletion listener has to be registered through registerDeletionListener() and configured to support restricted objects sets prior to this method being used.
Parameters
[in]observerObserver object to send notifications to.
[in]observablesList 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]observableCountSize of the observables list.
See Also
PxDeletionListener unregisterDeletionListenerObjects
virtual void PxPhysics::release ( )
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 allocator or the error callback (if available) until after the reference count reaches 0 and the SDK is actually removed.

Releasing an SDK will also release any scenes, triangle meshes, convex meshes, heightfields and shapes created through it, provided the user hasn't already done so.

Note
This function is required to be called to release foundation usage.
See Also
PxCreatePhysics()
virtual void PxPhysics::unregisterDeletionListener ( PxDeletionListener observer)
pure virtual

Unregister a deletion listener.

It is illegal to register or unregister a deletion listener while deletions are being processed.

Parameters
[in]observerObserver object to send notifications to
See Also
PxDeletionListener registerDeletionListener
virtual void PxPhysics::unregisterDeletionListenerObjects ( PxDeletionListener observer,
const PxBase *const *  observables,
PxU32  observableCount 
)
pure virtual

Unregister specific objects for deletion events.

This method allows to clear previously registered objects for a deletion listener (see registerDeletionListenerObjects()).

Note
It is illegal to register or unregister objects while deletions are being processed.
The deletion listener has to be registered through registerDeletionListener() and configured to support restricted objects sets prior to this method being used.
Parameters
[in]observerObserver object to stop sending notifications to.
[in]observablesList of objects for which to not receive deletion events anymore.
[in]observableCountSize of the observables list.
See Also
PxDeletionListener registerDeletionListenerObjects

The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com