public Component CreateCollisionComponent()
        {
            var component = new SceneComponent();

            ComponentCreator.AddComponentToRoot(component);
            return(component);
        }
 public Actor CreateActor(string modelPath)
 {
     if (actor != null)
     {
         actor.CleanUp();
         ComponentCreator.RemoveComponentFromRoot(actor);
     }
     actor = new Actor(new RawModel(ProxyModelLoader.LoadModel(modelPath)), DefaultTexture, DefaultShader);
     ComponentCreator.AddComponentToRoot(actor);
     return(actor);
 }
 public override string ToString()
 {
     return("SceneComponent_" + ComponentCreator.GetIdByComponent(this));
 }