PackagePBLabs.Box2D
Classpublic class Box2DSpatialComponent
InheritanceBox2DSpatialComponent Inheritance EntityComponent



Public Properties
 PropertyDefined by
  AngularVelocity : Number
Box2DSpatialComponent
  Body : b2Body
[read-only]
Box2DSpatialComponent
  CanMove : Boolean
Box2DSpatialComponent
  CanRotate : Boolean
Box2DSpatialComponent
  CanSleep : Boolean
Box2DSpatialComponent
  CollidesContinuously : Boolean
Box2DSpatialComponent
  CollidesWithTypes : ObjectType
Box2DSpatialComponent
  CollisionShapes : Array
Box2DSpatialComponent
  CollisionType : ObjectType
Box2DSpatialComponent
 InheritedIsRegistered : Boolean
Whether or not the component is currently registered with an entity.
EntityComponent
  LinearVelocity : Point
Box2DSpatialComponent
  Manager : Box2DManagerComponent
Box2DSpatialComponent
 InheritedName : String
The name given to the component when it is added to an entity.
EntityComponent
 InheritedOwner : IEntity
A reference to the entity that this component currently belongs to.
EntityComponent
  Position : Point
Box2DSpatialComponent
  Rotation : Number
Box2DSpatialComponent
  Size : Point
Box2DSpatialComponent
Public Methods
 MethodDefined by
  
Box2DSpatialComponent
 Inherited
Register(owner:IEntity, name:String):void
Registers the component with an entity.
EntityComponent
 Inherited
Reset():void
This is called by an entity on all of its components any time a component is added or removed.
EntityComponent
 Inherited
Unregister():void
Unregisters the component from an entity.
EntityComponent
  
UpdateMass():void
Box2DSpatialComponent
Protected Methods
 MethodDefined by
  
_OnAdd():void
Box2DSpatialComponent
  
_OnRemove():void
Box2DSpatialComponent
 Inherited
_OnReset():void
This is called anytime a component is added or removed from the owner entity.
EntityComponent
Property detail
AngularVelocityproperty
AngularVelocity:Number  [read-write]Implementation
    public function get AngularVelocity():Number
    public function set AngularVelocity(value:Number):void
Bodyproperty 
Body:b2Body  [read-only]Implementation
    public function get Body():b2Body
CanMoveproperty 
CanMove:Boolean  [read-write]Implementation
    public function get CanMove():Boolean
    public function set CanMove(value:Boolean):void
CanRotateproperty 
CanRotate:Boolean  [read-write]Implementation
    public function get CanRotate():Boolean
    public function set CanRotate(value:Boolean):void
CanSleepproperty 
CanSleep:Boolean  [read-write]Implementation
    public function get CanSleep():Boolean
    public function set CanSleep(value:Boolean):void
CollidesContinuouslyproperty 
CollidesContinuously:Boolean  [read-write]Implementation
    public function get CollidesContinuously():Boolean
    public function set CollidesContinuously(value:Boolean):void
CollidesWithTypesproperty 
CollidesWithTypes:ObjectType  [read-write]Implementation
    public function get CollidesWithTypes():ObjectType
    public function set CollidesWithTypes(value:ObjectType):void
CollisionShapesproperty 
CollisionShapes:Array  [read-write]Implementation
    public function get CollisionShapes():Array
    public function set CollisionShapes(value:Array):void
CollisionTypeproperty 
CollisionType:ObjectType  [read-write]Implementation
    public function get CollisionType():ObjectType
    public function set CollisionType(value:ObjectType):void
LinearVelocityproperty 
LinearVelocity:Point  [read-write]Implementation
    public function get LinearVelocity():Point
    public function set LinearVelocity(value:Point):void
Managerproperty 
Manager:Box2DManagerComponent  [read-write]Implementation
    public function get Manager():Box2DManagerComponent
    public function set Manager(value:Box2DManagerComponent):void
Positionproperty 
Position:Point  [read-write]Implementation
    public function get Position():Point
    public function set Position(value:Point):void
Rotationproperty 
Rotation:Number  [read-write]Implementation
    public function get Rotation():Number
    public function set Rotation(value:Number):void
Sizeproperty 
Size:Point  [read-write]Implementation
    public function get Size():Point
    public function set Size(value:Point):void
Method detail
_OnAdd()method
protected override function _OnAdd():void
_OnRemove()method 
protected override function _OnRemove():void
BuildCollisionShapes()method 
public function BuildCollisionShapes():void
UpdateMass()method 
public function UpdateMass():void