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;
 }
Beispiel #3
0
 public NJoint(NJointType type, NBody body)
 {
     Type = type;
     Body = body;
 }