コード例 #1
0
        protected override void OnInitialize()
        {
            PhysicsContext = new Physics();

            Freelook.SetEyeTarget(eye, target);

            Info.Text = infoText + "\nCCD enabled (P to disable)";

            base.OnInitialize();
        }
コード例 #2
0
        protected override void OnInitialize()
        {
            PhysicsContext = new Physics();

            Freelook.SetEyeTarget(eye, target);
            DemoText = "CCD enabled (P to disable)";
            Form.Text = "BulletSharp - CCD Demo";

            base.OnInitialize();
        }
コード例 #3
0
ファイル: CcdPhysicsDemo.cs プロジェクト: raiker/BulletSharp
        protected override void OnInitialize()
        {
            Physics = new Physics();

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

            Fps.Text = fpsText + "\nCCD enabled (P to disable)";

            Freelook.SetEyeTarget(eye, Vector3.Zero);

            base.OnInitialize();
        }