#include <EmitterActor.h>
Public Member Functions | |
virtual bool | validateEmitterPosition (const PxVec3 &emitterOrigin, PxVec3 &position)=0 |
This application callback is used to verify an emitted particle position. |
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.
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.