Пример #1
0
 public SimulationObject(Primitive prim, ISceneProvider scene)
 {
     Prim = prim;
     Scene = scene;
     Inventory = new SimulationObjectInventory(this);
 }
Пример #2
0
 public SimulationObject(SimulationObject obj)
 {
     Scene = obj.Scene;
     Prim = new Primitive(obj.Prim);
     Inventory = new SimulationObjectInventory(this);
     LinkNumber = obj.LinkNumber;
     frozen = obj.frozen;
     rotationAxis = obj.rotationAxis;
     // Skip everything else because it can be lazily reconstructed
 }