PackageBox2D.Collision.Shapes
Classpublic class b2CircleShape
Inheritanceb2CircleShape Inheritance b2Shape



Public Methods
 MethodDefined by
  
b2CircleShape
  
ComputeAABB(aabb:b2AABB, transform:b2XForm):void
b2CircleShape
  
ComputeMass(massData:b2MassData):void
b2CircleShape
  
ComputeSweptAABB(aabb:b2AABB, transform1:b2XForm, transform2:b2XForm):void
b2CircleShape
 Inherited
Create(def:b2ShapeDef, allocator:*):b2Shape
[static]
b2Shape
 Inherited
CreateProxy(broadPhase:b2BroadPhase, transform:b2XForm):void
b2Shape
 Inherited
Destroy(shape:b2Shape, allocator:*):void
[static]
b2Shape
 Inherited
DestroyProxy(broadPhase:b2BroadPhase):void
b2Shape
 Inherited
Get the parent body of this shape.
b2Shape
 Inherited
Get the contact filtering data.
b2Shape
 Inherited
GetFriction():Number
Get the coefficient of friction.
b2Shape
  
Get the local position of this circle in its parent body.
b2CircleShape
 Inherited
Get the next shape in the parent body's shape list.
b2Shape
  
GetRadius():Number
Get the radius of this circle.
b2CircleShape
 Inherited
GetRestitution():Number
Get the coefficient of restitution.
b2Shape
 Inherited
GetSweepRadius():Number
Get the maximum radius about the parent body's center of mass.
b2Shape
 Inherited
GetType():int
Get the type of this shape.
b2Shape
 Inherited
Get the user data that was assigned in the shape definition.
b2Shape
 Inherited
IsSensor():Boolean
Is this shape a sensor (non-solid)?
b2Shape
 Inherited
RefilterProxy(broadPhase:b2BroadPhase, transform:b2XForm):void
b2Shape
 Inherited
Set the contact filtering data.
b2Shape
 Inherited
SetUserData(data:*):void
Set the user data.
b2Shape
 Inherited
Synchronize(broadPhase:b2BroadPhase, transform1:b2XForm, transform2:b2XForm):Boolean
b2Shape
  
TestPoint(transform:b2XForm, p:b2Vec2):Boolean
b2CircleShape
  
TestSegment(transform:b2XForm, lambda:Array, normal:b2Vec2, segment:b2Segment, maxLambda:Number):Boolean
b2CircleShape
  
b2CircleShape
Public Constants
 ConstantDefined by
 Inheritede_circleShape : int = 0
[static]
b2Shape
 Inheritede_polygonShape : int = 1
[static]
b2Shape
 Inheritede_shapeTypeCount : int = 2
[static]
b2Shape
 Inheritede_unknownShape : int = -1
[static]
b2Shape
Property detail
m_localPositionproperty
b2internal var m_localPosition:b2Vec2
m_radiusproperty 
b2internal var m_radius:Number
Constructor detail
b2CircleShape()constructor
public function b2CircleShape(def:b2ShapeDef)Parameters
def:b2ShapeDef
Method detail
ComputeAABB()method
public override function ComputeAABB(aabb:b2AABB, transform:b2XForm):void

Parameters
aabb:b2AABB
 
transform:b2XForm

See also

b2Shape::ComputeAABB
ComputeMass()method 
public override function ComputeMass(massData:b2MassData):void

Parameters
massData:b2MassData

See also

b2Shape::ComputeMass
ComputeSweptAABB()method 
public override function ComputeSweptAABB(aabb:b2AABB, transform1:b2XForm, transform2:b2XForm):void

Parameters
aabb:b2AABB
 
transform1:b2XForm
 
transform2:b2XForm

See also

b2Shape::ComputeSweptAABB
GetLocalPosition()method 
public function GetLocalPosition():b2Vec2

Get the local position of this circle in its parent body.

Returns
b2Vec2
GetRadius()method 
public function GetRadius():Number

Get the radius of this circle.

Returns
Number
TestPoint()method 
public override function TestPoint(transform:b2XForm, p:b2Vec2):Boolean

Parameters
transform:b2XForm
 
p:b2Vec2

Returns
Boolean

See also

b2Shape::TestPoint
TestSegment()method 
public override function TestSegment(transform:b2XForm, lambda:Array, normal:b2Vec2, segment:b2Segment, maxLambda:Number):Boolean

Parameters
transform:b2XForm
 
lambda:Array
 
normal:b2Vec2
 
segment:b2Segment
 
maxLambda:Number

Returns
Boolean

See also

b2Shape::TestSegment
UpdateSweepRadius()method 
public override function UpdateSweepRadius(center:b2Vec2):voidParameters
center:b2Vec2