Public Member Functions
nvidia::apex::EmitterActor::EmitterValidateCallback Class Reference

#include <EmitterActor.h>

List of all members.

Public Member Functions

virtual bool validateEmitterPosition (const PxVec3 &emitterOrigin, PxVec3 &position)=0
 This application callback is used to verify an emitted particle position.

Detailed Description

This is an optional user validation callback interface. If the application wants to confirm/verify all emitted particles they can provide this callback interface by using the setApexEmitterValidateCallback method.


Member Function Documentation

virtual bool nvidia::apex::EmitterActor::EmitterValidateCallback::validateEmitterPosition ( const PxVec3 &  emitterOrigin,
PxVec3 &  position 
) [pure virtual]

This application callback is used to verify an emitted particle position.

If the user returns false, then the particle will not be emitted. If the user returns true if will be emitted but using the position value which is passed by reference. The application can choose to leave the emitter position alone, or modify it to a new location. All locations are in world space. For convenience to the application the world space emitter position is provided.


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

Generated on Tue Aug 1 2017 22:43:59

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