예제 #1
0
 public NBody[] Cache(NBody[] cache) {
   Array.Clear(cache, 0, cache.Length);
   lock (Bodies) {
     Bodies.CopyTo(cache, 0);
   }
   return cache;
 }
 public NJoint(NJointType type, NBody body) { 
   Type = type;
   Body = body;
 }
예제 #3
0
 public NJoint(NJointType type, NBody body)
 {
     Type = type;
     Body = body;
 }