PackageBox2DAS.Dynamics
Classpublic class b2Fixture
Inheritanceb2Fixture Inheritance b2EventDispatcher Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
 Inheriteddispatcher : IEventDispatcher
b2EventDispatcher
  groupID : int
b2Fixture
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
  m_aabb : b2AABB
[read-only]
b2Fixture
  m_body : b2Body
b2Fixture
  m_conveyorBeltSpeed : Number
b2Fixture
  m_density : Number
b2Fixture
 Inheritedmem : MemUser
[static]
b2Base
  m_filter : b2Filter
b2Fixture
  m_friction : Number
b2Fixture
  m_isSensor : Boolean
b2Fixture
  m_next : b2Fixture
b2Fixture
  m_proxyId : int
b2Fixture
  m_reportBeginContact : Boolean
b2Fixture
  m_reportEndContact : Boolean
b2Fixture
  m_reportPostSolve : Boolean
b2Fixture
  m_reportPreSolve : Boolean
b2Fixture
  m_restitution : Number
b2Fixture
  m_shape : b2Shape
b2Fixture
  m_userData : *
b2Fixture
 Inherited_ptr : Number
b2Base
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2Fixture(b:b2Body, d:b2FixtureDef = null, ed:IEventDispatcher = null)
b2Fixture
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
b2EventDispatcher
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
  
destroy():void
[override]
b2Fixture
 Inherited
dispatchEvent(evt:Event):Boolean
b2EventDispatcher
  
Draw(g:Graphics, xf:XF, scale:Number = 1):void
b2Fixture
 Inherited
getArr():Array
[static]
b2Base
  
b2Fixture
  
GetDensity():Number
b2Fixture
  
b2Fixture
  
GetFilterData():Object
b2Fixture
  
GetFriction():Number
b2Fixture
  
b2Fixture
  
b2Fixture
  
b2Fixture
  
b2Fixture
  
GetType():int
b2Fixture
  
b2Fixture
 Inherited
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
  
IsSensor():Boolean
b2Fixture
  
RayCast():void
b2Fixture
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
  
Refilter():void
b2Fixture
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
b2EventDispatcher
  
SetDensity(v:Number):void
b2Fixture
  
SetFilterData(filter:Object, refilter:Boolean = true):void
b2Fixture
  
SetFriction(friction:Number):void
b2Fixture
  
SetRestitution(restitution:Number):void
b2Fixture
  
SetSensor(sensor:Boolean):void
b2Fixture
  
SetUserData(data:*):void
b2Fixture
  
TestPoint(p:V2):Boolean
b2Fixture
 Inherited
willTrigger(type:String):Boolean
b2EventDispatcher
 Inherited
writeVertices(adr:int, v:Vector.<V2>):void
Write a vertex array of the format [new V2(x,y), new V2(x,y), ...] to C++ memory.
b2Base
Property Detail
groupIDproperty
groupID:int


Implementation
    public function get groupID():int
    public function set groupID(value:int):void
m_aabbproperty 
m_aabb:b2AABB  [read-only]


Implementation
    public function get m_aabb():b2AABB
m_bodyproperty 
public var m_body:b2Body

m_conveyorBeltSpeedproperty 
m_conveyorBeltSpeed:Number


Implementation
    public function get m_conveyorBeltSpeed():Number
    public function set m_conveyorBeltSpeed(value:Number):void
m_densityproperty 
m_density:Number


Implementation
    public function get m_density():Number
    public function set m_density(value:Number):void
m_filterproperty 
public var m_filter:b2Filter

m_frictionproperty 
m_friction:Number


Implementation
    public function get m_friction():Number
    public function set m_friction(value:Number):void
m_isSensorproperty 
m_isSensor:Boolean


Implementation
    public function get m_isSensor():Boolean
    public function set m_isSensor(value:Boolean):void
m_nextproperty 
public var m_next:b2Fixture

m_proxyIdproperty 
m_proxyId:int


Implementation
    public function get m_proxyId():int
    public function set m_proxyId(value:int):void
m_reportBeginContactproperty 
m_reportBeginContact:Boolean


Implementation
    public function get m_reportBeginContact():Boolean
    public function set m_reportBeginContact(value:Boolean):void
m_reportEndContactproperty 
m_reportEndContact:Boolean


Implementation
    public function get m_reportEndContact():Boolean
    public function set m_reportEndContact(value:Boolean):void
m_reportPostSolveproperty 
m_reportPostSolve:Boolean


Implementation
    public function get m_reportPostSolve():Boolean
    public function set m_reportPostSolve(value:Boolean):void
m_reportPreSolveproperty 
m_reportPreSolve:Boolean


Implementation
    public function get m_reportPreSolve():Boolean
    public function set m_reportPreSolve(value:Boolean):void
m_restitutionproperty 
m_restitution:Number


Implementation
    public function get m_restitution():Number
    public function set m_restitution(value:Number):void
m_shapeproperty 
public var m_shape:b2Shape

m_userDataproperty 
public var m_userData:*

Constructor Detail
b2Fixture()Constructor
public function b2Fixture(b:b2Body, d:b2FixtureDef = null, ed:IEventDispatcher = null)



Parameters
b:b2Body
 
d:b2FixtureDef (default = null)
 
ed:IEventDispatcher (default = null)
Method Detail
destroy()method
override public function destroy():void

Draw()method 
public function Draw(g:Graphics, xf:XF, scale:Number = 1):void

Parameters

g:Graphics
 
xf:XF
 
scale:Number (default = 1)

GetBody()method 
public function GetBody():b2Body

Returns
b2Body
GetDensity()method 
public function GetDensity():Number

Returns
Number
GetDistance()method 
public function GetDistance(f:b2Fixture):V2

Parameters

f:b2Fixture

Returns
V2
GetFilterData()method 
public function GetFilterData():Object

Returns
Object
GetFriction()method 
public function GetFriction():Number

Returns
Number
GetMassData()method 
public function GetMassData():b2MassData

Returns
b2MassData
GetNext()method 
public function GetNext():b2Fixture

Returns
b2Fixture
GetRestitution()method 
public function GetRestitution():Number

Returns
Number
GetShape()method 
public function GetShape():b2Shape

Returns
b2Shape
GetType()method 
public function GetType():int

Returns
int
GetUserData()method 
public function GetUserData():*

Returns
*
IsSensor()method 
public function IsSensor():Boolean

Returns
Boolean
RayCast()method 
public function RayCast():void

Refilter()method 
public function Refilter():void

SetDensity()method 
public function SetDensity(v:Number):void

Parameters

v:Number

SetFilterData()method 
public function SetFilterData(filter:Object, refilter:Boolean = true):void

Parameters

filter:Object
 
refilter:Boolean (default = true)

SetFriction()method 
public function SetFriction(friction:Number):void

Parameters

friction:Number

SetRestitution()method 
public function SetRestitution(restitution:Number):void

Parameters

restitution:Number

SetSensor()method 
public function SetSensor(sensor:Boolean):void

Parameters

sensor:Boolean

SetUserData()method 
public function SetUserData(data:*):void

Parameters

data:*

TestPoint()method 
public function TestPoint(p:V2):Boolean

Parameters

p:V2

Returns
Boolean