Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Bullet2PhysicsSystem.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 
4 namespace SiliconStudio.Paradox.Physics
5 {
7  {
8  public Bullet2PhysicsSystem(Game game) : base(game.Services)
9  {
10  PhysicsEngine = new PhysicsEngine(game);
11  game.Services.AddService(typeof(IPhysicsSystem), this);
12  game.GameSystems.Add(this);
13  }
14 
15  public PhysicsEngine PhysicsEngine { get; private set; }
16 
17  protected override void Destroy()
18  {
19  base.Destroy();
20  PhysicsEngine.Dispose();
21  }
22  }
23 }
override void Destroy()
Disposes of object resources.
Main Game class system.
Definition: Game.cs:32
using SiliconStudio.Paradox. Physics