Now, we are going to add another physics simulator with a different gravitational force to control the fluid model as an actor, with a predefined behavior.
privatevariable in the
public class InvadersGame : RealTimeGame, to hold another
private PhysicsSimulator _fluidPhysicsSimulator;
privatevariable to hold the new
private FluidWithWaves _fluidWithWaves;
privatemethod to initialize the fluids physics simulator, specifying a specific desired gravitational force as a 2D ...