Esempio n. 1
0
        private void InitializeWater(PhysicsSimulator physicsSimulator)
        {
            _waterView = new WaterView(_gameModel.WaterModel, LayoutRoot);
            _waterView.Initialize(physicsSimulator);

            WaveGenerator.Maximum = 2;
            WaveGenerator.Minimum = 0;
            WaveGenerator.Value   = 0.20f;

            Density.Maximum = 10;
            Density.Minimum = 0;
            Density.Value   = 5;

            LinearDrag.Maximum = 10;
            LinearDrag.Minimum = 0;
            LinearDrag.Value   = 4;

            RotationalDrag.Maximum = 3;
            RotationalDrag.Minimum = 0;
            RotationalDrag.Value   = 2f;
        }
Esempio n. 2
0
        private void InitializeWater(PhysicsSimulator physicsSimulator)
        {
            _waterView = new WaterView(_gameModel.WaterModel, LayoutRoot);
            _waterView.Initialize(physicsSimulator);

            WaveGenerator.Maximum = 2;
            WaveGenerator.Minimum = 0;
            WaveGenerator.Value = 0.20f;

            Density.Maximum = 10;
            Density.Minimum = 0;
            Density.Value = 5;

            LinearDrag.Maximum = 10;
            LinearDrag.Minimum = 0;
            LinearDrag.Value = 4;

            RotationalDrag.Maximum = 3;
            RotationalDrag.Minimum = 0;
            RotationalDrag.Value = 2f;
        }