//---------------------------------------------------------------------------- void WaterDropFormation::PhysicsTick () { mSimTime += mSimDelta; if (mSimTime <= 1.0f) { // Water surface extruded to form a water drop. DoPhysical1(); } else if (mSimTime <= 2.0f) { // Water drop splits from water surface. DoPhysical2(); } else if (mSimTime <= 4.0f) { // Water drop continues downward motion, surface no longer changes. DoPhysical3(); } else { // Restart the animation. Configuration0(); } }
//---------------------------------------------------------------------------- void WaterDropFormation::DoPhysical () { m_fSimTime += m_fSimDelta; if ( m_fSimTime <= 1.0f ) { // water surface extruded to form a water drop DoPhysical1(); } else if ( m_fSimTime <= 2.0f ) { // water drop splits from water surface DoPhysical2(); } else if ( m_fSimTime <= 4.0f ) { // water drop continues downward motion, surface no longer changes DoPhysical3(); } else { // restart Configuration0(); } }