Effect::MoveEffect
Defined in:
Called once per frame to move an effect.
C4Effects.hPrototype
virtual void MoveEffect(void);
Description
The MoveEffect function is called once per frame to allow an effect to perform any necessary movement. An effect may safely delete itself inside this function if desired.The
MoveEffect function is only called for effects that are in a non-sleeping state. Effects are in the sleeping state by default, so the Effect::WakeEffect function must be called for any effect that needs to have its MoveEffect function called. The WakeEffect function would normally be called from inside a custom effect's Node::PreprocessNode function.Any type of processing that only needs to be done when the effect is known to be visible should be postponed until the
Effect::RenderEffect function is called. This saves computation when the effect is not visible or is occluded.
See Also
