Beispiel #1
0
        public override void Render()
        {
            _effect.View       = Engine.Instance.Camera.View;
            _effect.Projection = Engine.Instance.Camera.Projection;
            _effect.World      = GetRenderMatrix();
            _effect.CurrentTechnique.Passes[0].Apply();
            _model.Render(_effect, BrakePedalInput > 0);

            WheelModel.BeginBatch();
            foreach (VehicleWheel wheel in Wheels)
            {
                wheel.Render();
            }
        }