Public Member Functions
nvidia::apex::ClothingVelocityCallback Class Reference

container class for the velocity shader callback. More...

#include <ClothingVelocityCallback.h>

List of all members.

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]velocitiesThe velocities of the cloth. These can be modified if necessary, but then the method needs to return true!
[in]positionsThe positions of the cloth. Must not be modified, only read.
[in]numParticlesSize 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 Sat Dec 1 2018 15:51:51

Copyright © 2012-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.