container class for the velocity shader callback. More...
#include <ClothingVelocityCallback.h>
Public Member Functions | |
virtual bool | velocityShader (PxVec3 *velocities, const PxVec3 *positions, uint32_t numParticles)=0 |
This callback will be fired in Apex threads. It must not address any user data, just operate on the data. |
container class for the velocity shader callback.
virtual bool nvidia::apex::ClothingVelocityCallback::velocityShader | ( | PxVec3 * | velocities, |
const PxVec3 * | positions, | ||
uint32_t | numParticles | ||
) | [pure virtual] |
This callback will be fired in Apex threads. It must not address any user data, just operate on the data.
[in,out] | velocities | The velocities of the cloth. These can be modified if necessary, but then the method needs to return true! |
[in] | positions | The positions of the cloth. Must not be modified, only read. |
[in] | numParticles | Size of the velocities and positions array. |