API Docs for: 0.1.0
Show:

config.component.physics.body Class

* THIS IS NOT A CLASS! ITS A CONFIGURATION OBJECT. *

Physics body configuration.

Represents a body in the Box2D interface.

Used by zerk.game.engine.component.physics

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

Fixtures of the body

May contain one of:

config.component.physics.body.fixture.rectangle

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