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); }