Box2D. Box2dStaticObject

Box2D Static Object - Box2d with a static physics body

Constructor

new Box2dStaticObject(posopt, sizeopt, tileInfoopt, angleopt, coloropt, renderOrderopt)

Create a LittleJS object with Box2d physics

Parameters:
NameTypeAttributesDefaultDescription
posVector2<optional>
sizeVector2<optional>
tileInfoTileInfo<optional>
anglenumber<optional>
0
colorColor<optional>
renderOrdernumber<optional>
0

Extends

  • Box2dObject