PxConstraintAllocator Class Referenceabstract

#include <PxSolverDefs.h>

Public Member Functions

virtual PxU8 * reserveConstraintData (const PxU32 byteSize)=0
 Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed. More...
 
virtual PxU8 * reserveFrictionData (const PxU32 byteSize)=0
 Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc. More...
 
virtual ~PxConstraintAllocator ()
 

Constructor & Destructor Documentation

◆ ~PxConstraintAllocator()

virtual PxConstraintAllocator::~PxConstraintAllocator ( )
inlinevirtual

Member Function Documentation

◆ reserveConstraintData()

virtual PxU8* PxConstraintAllocator::reserveConstraintData ( const PxU32  byteSize)
pure virtual

Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed.

Parameters
[in]byteSizeAllocation size in bytes
Returns
the allocated memory. This address must be 16-byte aligned.

◆ reserveFrictionData()

virtual PxU8* PxConstraintAllocator::reserveFrictionData ( const PxU32  byteSize)
pure virtual

Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc.

Parameters
[in]byteSizeAllocation size in bytes
Returns
the allocated memory. This address must be 4-byte aligned.

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