RectPhysicsBody

A rectangular physics body
new RectPhysicsBody( [ options ] )

Parameters

options object
options.x number 0
options.y number 0
options.width number 0
options.height number 0
options.velocity object
options.velocity.x number 0
options.velocity.y number 0
options.immovable boolean false
options.mass number 0
options.bounciness number 0
options.solid boolean true
options.rotation number 0
options.friction number 1

Properties

NAME string 'RectPhysicsBody'
x number 0
y number 0
width number 0
height number 0
velocity object
mass number 0
bounciness number 0
solid boolean true
rotation number 0
friction number 1