API Docs for: 0.1.0
Show:

zerk.game.engine.physics.body Class

Body

This class represents a body in the Box2D interface.

Methods

init

()

Class constructor

Properties

angle

Float

Rotation angle of the body

fixedRotation

Boolean

Indicates that the body cannot rotate

fixtures

Array

Fixtures array

An array of fixtures bound to this body

height

Integer

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

physicsHandle

Object

Physics handle

width

Integer

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