Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BoxOptions

(Note that this options object will be passed on to the Shape constructor.)

Hierarchy

Index

Properties

angle?: number

Body-local angle of the shape.

see

Shape.angle

collisionGroup?: number

Collision group for the shape

see

Shape.collisionGroup

collisionMask?: number

Collision mask for the shape

see

Shape.collisionMask

collisionResponse?: boolean

Whether to produce contact forces when in contact with other bodies.

see

Shape.collisionResponse

height?: number

Total height of the box

see

Box.height

material?: Material

Material for the shape

see

Shape.material

position?: Vec2

Body-local position of the shape.

see

Shape.position

sensor?: boolean

Whether the shape is a sensor

see

Shape.sensor

width?: number

Total width of the box

see

Box.width