| Package | PBLabs.Box2D |
| Class | public class Box2DSpatialComponent |
| Inheritance | Box2DSpatialComponent EntityComponent |
| Property | Defined 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 | ||
![]() | IsRegistered : Boolean
Whether or not the component is currently registered with an entity.
| EntityComponent | |
| LinearVelocity : Point | Box2DSpatialComponent | ||
| Manager : Box2DManagerComponent | Box2DSpatialComponent | ||
![]() | Name : String
The name given to the component when it is added to an entity.
| EntityComponent | |
![]() | Owner : IEntity
A reference to the entity that this component currently belongs to.
| EntityComponent | |
| Position : Point | Box2DSpatialComponent | ||
| Rotation : Number | Box2DSpatialComponent | ||
| Size : Point | Box2DSpatialComponent | ||
| Method | Defined by | ||
|---|---|---|---|
|
BuildCollisionShapes():void
| Box2DSpatialComponent | ||
![]() |
Registers the component with an entity.
| EntityComponent | |
![]() |
Reset():void
This is called by an entity on all of its components any time a component
is added or removed.
| EntityComponent | |
![]() |
Unregister():void
Unregisters the component from an entity.
| EntityComponent | |
|
UpdateMass():void
| Box2DSpatialComponent | ||
| Method | Defined by | ||
|---|---|---|---|
|
_OnAdd():void
| Box2DSpatialComponent | ||
|
_OnRemove():void
| Box2DSpatialComponent | ||
![]() |
_OnReset():void
This is called anytime a component is added or removed from the owner entity.
| EntityComponent | |
| AngularVelocity | property |
AngularVelocity:Number [read-write]Implementation
public function get AngularVelocity():Number
public function set AngularVelocity(value:Number):void
| Body | property |
| CanMove | property |
CanMove:Boolean [read-write]Implementation
public function get CanMove():Boolean
public function set CanMove(value:Boolean):void
| CanRotate | property |
CanRotate:Boolean [read-write]Implementation
public function get CanRotate():Boolean
public function set CanRotate(value:Boolean):void
| CanSleep | property |
CanSleep:Boolean [read-write]Implementation
public function get CanSleep():Boolean
public function set CanSleep(value:Boolean):void
| CollidesContinuously | property |
CollidesContinuously:Boolean [read-write]Implementation
public function get CollidesContinuously():Boolean
public function set CollidesContinuously(value:Boolean):void
| CollidesWithTypes | property |
CollidesWithTypes:ObjectType [read-write]Implementation
public function get CollidesWithTypes():ObjectType
public function set CollidesWithTypes(value:ObjectType):void
| CollisionShapes | property |
CollisionShapes:Array [read-write]Implementation
public function get CollisionShapes():Array
public function set CollisionShapes(value:Array):void
| CollisionType | property |
CollisionType:ObjectType [read-write]Implementation
public function get CollisionType():ObjectType
public function set CollisionType(value:ObjectType):void
| LinearVelocity | property |
LinearVelocity:Point [read-write]Implementation
public function get LinearVelocity():Point
public function set LinearVelocity(value:Point):void
| Manager | property |
Manager:Box2DManagerComponent [read-write]Implementation
public function get Manager():Box2DManagerComponent
public function set Manager(value:Box2DManagerComponent):void
| Position | property |
Position:Point [read-write]Implementation
public function get Position():Point
public function set Position(value:Point):void
| Rotation | property |
Rotation:Number [read-write]Implementation
public function get Rotation():Number
public function set Rotation(value:Number):void
| Size | property |
Size:Point [read-write]Implementation
public function get Size():Point
public function set Size(value:Point):void
| _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