Example #1
0
 public FixtureUpdateMessage(PhysicsComponent body, Fixture fixture)
 {
     Body    = body;
     Fixture = fixture;
 }
 /// <summary>
 ///     Get the percentage that 2 bodies overlap. Ignores whether collision is turned on for either body.
 /// </summary>
 /// <param name="bodyA"></param>
 /// <param name="bodyB"></param>
 /// <returns> 0 -> 1.0f based on WorldAABB overlap</returns>
 public float IntersectionPercent(PhysicsComponent bodyA, PhysicsComponent bodyB)
 {
     // TODO: Use actual shapes and not just the AABB?
     return(bodyA.GetWorldAABB().IntersectPercentage(bodyB.GetWorldAABB()));
 }
Example #3
0
 public PhysicsUpdateMessage(PhysicsComponent component)
 {
     Component = component;
 }