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