nvidia::apex::ClothingVelocityCallback Class Reference
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. |
Detailed Description
container class for the velocity shader callback.
Member Function Documentation
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.
- Parameters:
-
[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.
- Returns:
- return true if the velocities have been altered, false if they just have been read
The documentation for this class was generated from the following file:
Generated on Fri Dec 15 2017 13:58:38
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.