Example #1
0
        private void InitializeWater(PhysicsSimulator physicsSimulator)
        {
            WaterModel = new WaterModel();
            WaterModel.Initialize(physicsSimulator);

            foreach (var boxModel in BoxModels)
            {
                WaterModel.FluidDragController.AddGeom(boxModel.Geom);
            }

            foreach (var boxModel in PyramidBoxModels)
            {
                WaterModel.FluidDragController.AddGeom(boxModel.Geom);
            }
        }
Example #2
0
        private void InitializeWater(PhysicsSimulator physicsSimulator)
        {
            WaterModel = new WaterModel();
            WaterModel.Initialize(physicsSimulator);

            foreach (var boxModel in BoxModels)
            {
                WaterModel.FluidDragController.AddGeom(boxModel.Geom);
            }

            foreach (var boxModel in PyramidBoxModels)
            {
                WaterModel.FluidDragController.AddGeom(boxModel.Geom);
            }
        }
Example #3
0
 public WaterView(WaterModel waterModel, Canvas canvas)
 {
     WaterModel = waterModel;
     _canvas = canvas;
 }
Example #4
0
 public void Update(TimeSpan elapsedTime)
 {
     WaterModel.Update(elapsedTime);
 }