config.component.physics.body Class
* THIS IS NOT A CLASS! ITS A CONFIGURATION OBJECT. *
Physics body configuration.
Represents a body in the Box2D interface.
Item Index
Properties
- _fixtureList
- _physicsHandle
- angle
- fixedRotation
- fixtures
- height deprecated
- key
- kinematic
- moveable
- origin
- width deprecated
- x
- y
Properties
_fixtureList
Array
protected
List of fixtures
_physicsHandle
Object
protected
Physics handle
angle
Float
Rotation angle of the body
fixedRotation
Boolean
Indicates that the body cannot rotate
fixtures
Object
height
Float
deprecated
Total height of the body with all its fixtures and their positions
key
String
Identification key
Unique inside the enitity.
kinematic
Boolean
Sets the body to be kinematic
moveable
Boolean
Indicates that the body is moveable
origin
Boolean
Indicates that this body is the origin of its parent entity
width
Float
deprecated
Total width of the body with all its fixtures and their positions
x
Float
The horizontal position of the body related to the entity center
y
Float
The vertical position of the body related to the entity center