/// <summary> /// /// </summary> /// <param name="modelAtom"></param> public KinematicModel AddKinematicModel(short modelAtom, Entity entity) { var modelName = World.Atoms[modelAtom]; var modelDesc = World.Content.Load <ModelDescriptor>(@"models\" + modelName); var scene = World.Content.Load <Scene>(modelDesc.ScenePath); var model = new KinematicModel(this, modelDesc, scene, entity); kinematics.AddLast(model); return(model); }
/// <summary> /// /// </summary> /// <param name="staticModel"></param> /// <returns></returns> public bool Remove(KinematicModel staticModel) { staticModel.Destroy(); return(kinematics.Remove(staticModel)); }