/// <summary> /// Move wave particles to new positions and handle subdivision and reflections events within the time step. /// /// Use a timetable of events, as when waveparticles are generated, their exact subdivision and reflections times /// can be found. Before subdivision, check wave particle amplitude and if it is below a certain user-defined /// threshold, kill the wave particle instead of subdividing it. /// </summary> void IterateWaveParticles() { //Loop over event timetable for this frame, and update wave particles as neccesary. Profiler.BeginSample("Calculate Subdivisions"); waveParticles.calculateSubdivisions(currentFrame); Profiler.EndSample(); Profiler.BeginSample("Calculate Reflections"); waveParticles.calculateReflections(currentFrame); Profiler.EndSample(); }
/// <summary> /// Move wave particles to new positions and handle subdivision and reflections events within the time step. /// /// Use a timetable of events, as when waveparticles are generated, their exact subdivision and reflections times /// can be found. Before subdivision, check wave particle amplitude and if it is below a certain user-defined /// threshold, kill the wave particle instead of subdividing it. /// </summary> void IterateWaveParticles() { //Loop over event timetable for this frame, and update wave particles as neccesary. waveParticles.calculateSubdivisions(currentFrame); waveParticles.calculateReflections(currentFrame); }