Example #1
0
        protected override void OnInitialize()
        {
            Physics = new Physics();
            Physics.World.SetInternalTickCallback(PickingPreTickCallback, this, true);

            light = new Light();
            light.Type = LightType.Point;
            light.Range = 75;
            light.Position = new Vector3(10, 25, 0);
            light.Diffuse = Color.LemonChiffon;
            light.Attenuation0 = 1.0f;

            softBodyMaterial = new SlimDX.Direct3D9.Material();
            softBodyMaterial.Diffuse = Color.White;
            softBodyMaterial.Ambient = new Color4(Ambient);

            Fps.Text = "Move using mouse and WASD+shift\n" +
                "F3 - Toggle debug\n" +
                "F11 - Toggle fullscreen\n" +
                "Space - Shoot box\n\n" +
                "B - Previous Demo\n" +
                "N - Next Demo";

            Freelook.SetEyeTarget(eye, target);

            base.OnInitialize();
        }
Example #2
0
        protected override void OnInitialize()
        {
            PhysicsContext = new Physics();
            PhysicsContext.World.SetInternalTickCallback(PickingPreTickCallback, this, true);

            DemoText = "B - Previous Demo\n" +
                "N - Next Demo";
            Form.Text = "BulletSharp - SoftBody Demo";

            Freelook.SetEyeTarget(eye, target);
            CullingEnabled = false;

            base.OnInitialize();
        }
Example #3
0
        protected override void OnInitialize()
        {
            PhysicsContext = new Physics();
            PhysicsContext.World.SetInternalTickCallback(PickingPreTickCallback, this, true);

            Info.Text = "Move using mouse and WASD+shift\n" +
                //"F3 - Toggle debug\n" +
                //"F11 - Toggle fullscreen\n" +
                "Space - Shoot box\n\n" +
                "B - Previous Demo\n" +
                "N - Next Demo";

            Freelook.SetEyeTarget(eye, target);

            base.OnInitialize();
        }