PackageBox2D.Collision
Classpublic class b2Collision



Public Methods
 MethodDefined by
  
b2CollideCircles(manifold:b2Manifold, circle1:b2CircleShape, xf1:b2XForm, circle2:b2CircleShape, xf2:b2XForm):void
[static]
b2Collision
  
[static]
b2Collision
  
[static] The normal points from 1 to 2
b2Collision
  
b2TestOverlap(a:b2AABB, b:b2AABB):Boolean
[static]
b2Collision
  
ClipSegmentToLine(vOut:Array, vIn:Array, normal:b2Vec2, offset:Number):int
[static]
b2Collision
  
EdgeSeparation(poly1:b2PolygonShape, xf1:b2XForm, edge1:int, poly2:b2PolygonShape, xf2:b2XForm):Number
[static] Find the separation between poly1 and poly2 for a give edge normal on poly1.
b2Collision
  
FindIncidentEdge(c:Array, poly1:b2PolygonShape, xf1:b2XForm, edge1:int, poly2:b2PolygonShape, xf2:b2XForm):void
[static]
b2Collision
  
FindMaxSeparation(edgeIndex:Array, poly1:b2PolygonShape, xf1:b2XForm, poly2:b2PolygonShape, xf2:b2XForm):Number
[static] Find the max separation between poly1 and poly2 using edge normals from poly1.
b2Collision
Public Constants
 ConstantDefined by
  b2_nullFeature : uint = 0x000000ff
[static] Null feature
b2Collision
Method detail
b2CollideCircles()method
public static function b2CollideCircles(manifold:b2Manifold, circle1:b2CircleShape, xf1:b2XForm, circle2:b2CircleShape, xf2:b2XForm):voidParameters
manifold:b2Manifold
 
circle1:b2CircleShape
 
xf1:b2XForm
 
circle2:b2CircleShape
 
xf2:b2XForm
b2CollidePolygonAndCircle()method 
public static function b2CollidePolygonAndCircle(manifold:b2Manifold, polygon:b2PolygonShape, xf1:b2XForm, circle:b2CircleShape, xf2:b2XForm):voidParameters
manifold:b2Manifold
 
polygon:b2PolygonShape
 
xf1:b2XForm
 
circle:b2CircleShape
 
xf2:b2XForm
b2CollidePolygons()method 
public static function b2CollidePolygons(manifold:b2Manifold, polyA:b2PolygonShape, xfA:b2XForm, polyB:b2PolygonShape, xfB:b2XForm):void

The normal points from 1 to 2

Parameters
manifold:b2Manifold
 
polyA:b2PolygonShape
 
xfA:b2XForm
 
polyB:b2PolygonShape
 
xfB:b2XForm
b2TestOverlap()method 
public static function b2TestOverlap(a:b2AABB, b:b2AABB):BooleanParameters
a:b2AABB
 
b:b2AABB

Returns
Boolean
ClipSegmentToLine()method 
public static function ClipSegmentToLine(vOut:Array, vIn:Array, normal:b2Vec2, offset:Number):intParameters
vOut:Array
 
vIn:Array
 
normal:b2Vec2
 
offset:Number

Returns
int
EdgeSeparation()method 
public static function EdgeSeparation(poly1:b2PolygonShape, xf1:b2XForm, edge1:int, poly2:b2PolygonShape, xf2:b2XForm):Number

Find the separation between poly1 and poly2 for a give edge normal on poly1.

Parameters
poly1:b2PolygonShape
 
xf1:b2XForm
 
edge1:int
 
poly2:b2PolygonShape
 
xf2:b2XForm

Returns
Number
FindIncidentEdge()method 
public static function FindIncidentEdge(c:Array, poly1:b2PolygonShape, xf1:b2XForm, edge1:int, poly2:b2PolygonShape, xf2:b2XForm):voidParameters
c:Array
 
poly1:b2PolygonShape
 
xf1:b2XForm
 
edge1:int
 
poly2:b2PolygonShape
 
xf2:b2XForm
FindMaxSeparation()method 
public static function FindMaxSeparation(edgeIndex:Array, poly1:b2PolygonShape, xf1:b2XForm, poly2:b2PolygonShape, xf2:b2XForm):Number

Find the max separation between poly1 and poly2 using edge normals from poly1.

Parameters
edgeIndex:Array
 
poly1:b2PolygonShape
 
xf1:b2XForm
 
poly2:b2PolygonShape
 
xf2:b2XForm

Returns
Number
Constant detail
b2_nullFeatureconstant
public static const b2_nullFeature:uint = 0x000000ff

Null feature