   # The particle emitter
   emitter: null
 
+  # The spatial optimisation manager to use
+  space: null
+
+  # Settings
   springIterations: 1
 
   constructor: ->
+    @space = new Space()
+    @emitter = new Emitter(this)
     @clear()
 
   clear: ->
     @particles = []
     @behaviours = []
     @constraints = []
-    @emitter = new Emitter(this)
 
   # polymorphic add
   add: ->


  update: ->
    @emitter.update()

    particles = @particles


module.exports =
  Physics: Physics
  Emitter: Emitter
  Space: Space
  Behaviour: Behaviour
  Constraint: Constraint
  Spring: Spring
