示例#1
0
 public void UpdateBody(VoltBody body)
 {
     // Do nothing
 }
示例#2
0
 private void FreeBody(VoltBody body)
 {
     this.bodyPool.Deallocate(body);
 }
示例#3
0
 internal void AssignBody(VoltBody body)
 {
     this.Body = body;
     this.ComputeMetrics();
 }
示例#4
0
 public static bool FilterDynamic(VoltBody body)
 {
     return(body.IsStatic);
 }
示例#5
0
 public static VoltBodyFilter FilterExcept(VoltBody exception)
 {
     return((body) => body != exception);
 }
示例#6
0
 public static bool FilterAll(VoltBody body)
 {
     return(false);
 }
示例#7
0
 public static bool FilterStatic(VoltBody body)
 {
     return(body.IsStatic == false);
 }
示例#8
0
 public static bool FilterNone(VoltBody body)
 {
     return(true);
 }
示例#9
0
 private Vector2 RelativeVelocity(VoltBody bodyA, VoltBody bodyB)
 {
     return
         ((bodyA.AngularVelocity * this.toALeft + bodyA.LinearVelocity) -
          (bodyB.AngularVelocity * this.toBLeft + bodyB.LinearVelocity));
 }
示例#10
0
 public static bool Filter_All(VoltBody body)
 {
     return(true);
 }
示例#11
0
 public static bool Filter_DynamicOnly(VoltBody body)
 {
     return(body.IsStatic == false);
 }
示例#12
0
 public static bool Filter_StaticOnly(VoltBody body)
 {
     return(body.IsStatic);
 }