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; }