Class: Rectangle

Rectangle(width, height, offset, offsetAngle)

new Rectangle(width, height, offset, offsetAngle)

Parameters:
Name Type Description
width number
height number
offset Vector2 Positional offset from the body center.
offsetAngle number Angular offset from the body center.
Source:

Members

height :number

Type:
  • number
Source:

width :number

Type:
  • number
Source:

Methods

(static) calcInertia(mass, width, height)

Parameters:
Name Type Description
mass number of the body
width number
height number
Source:
Returns:
number