RavEngine
Loading...
Searching...
No Matches
physx::SnippetImmUtils::TestConstraintAllocator Class Reference
Inheritance diagram for physx::SnippetImmUtils::TestConstraintAllocator:
[legend]
Collaboration diagram for physx::SnippetImmUtils::TestConstraintAllocator:
[legend]

Public Member Functions

virtual PxU8 * reserveConstraintData (const PxU32 byteSize)
 Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed.
 
virtual PxU8 * reserveFrictionData (const PxU32 byteSize)
 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.
 
void release ()
 

Member Function Documentation

◆ reserveConstraintData()

virtual PxU8 * physx::SnippetImmUtils::TestConstraintAllocator::reserveConstraintData ( const PxU32  byteSize)
inlinevirtual

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.

Implements physx::PxConstraintAllocator.

◆ reserveFrictionData()

virtual PxU8 * physx::SnippetImmUtils::TestConstraintAllocator::reserveFrictionData ( const PxU32  byteSize)
inlinevirtual

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.

Implements physx::PxConstraintAllocator.


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