Пример #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);
 }