Exemplo n.º 1
0
		public PhysicsManager(Game game)
			: base(game)
		{
			_bodies = new List<RigidBody>();
			_bodiesReadOnly = _bodies.AsReadOnly();

			_islands = new List<Island>();
			_generators = new List<IForceGenerator>();
			_gravityForce = new GravityForce(Vector3.Zero);
			game.Components.Add(this);
		}
Exemplo n.º 2
0
        public PhysicsManager(Game game)
            : base(game)
        {
            _bodies         = new List <RigidBody>();
            _bodiesReadOnly = _bodies.AsReadOnly();

            _islands      = new List <Island>();
            _generators   = new List <IForceGenerator>();
            _gravityForce = new GravityForce(Vector3.Zero);
            game.Components.Add(this);
        }