}
public GameObject createGameObject() {
GameObject object = new GameObject(this, nextId());
object.setName("Game Object:" + object.getId());
SpatialComponent spatial = new SpatialComponent();
object.registerComponent(spatial);
objects.add(object);
return object;
}