Ejemplo n.º 1
0
        void Start()
        {
            double radius  = 0.25;
            double density = 1000.0;

            CreateBoundary(radius, density);
            CreateFluid(radius, density);

            Solver = new FluidSolver3d(Body);
            Solver.AddForce(new GravitationalForce3d());
        }
        void Start()
        {
            double radius  = 0.25;
            double density = 1000.0;

            CreateBoundary(radius, density);
            CreateFluid(radius, density);

            Solver = new FluidSolver3d(Body);
            Solver.AddForce(new GravitationalForce3d());

            RenderEvent.AddRenderEvent(Camera.main, DrawOutline);
        }