Box

Returns a Box collision shape object

new virtuosity.collisionManager.shape.Box(x, y, width, height);


Parameter Type Description
x Number x position of the Box
y Number y position of the Box
width Number width of the Box
height Number height of the Box

Methods

Properties


Methods

position

Sets the position of the box

virtuosity.collisionManager.shape.Box.position(x, y);


Parameter Type Description
x Number x position of the Point
y Number y position of the Point

scaling

Sets the scaling of the box

virtuosity.collisionManager.shape.Box.scaling(width, height);


Parameter Type Description
width Number width of the box
height Number height of the box


Properties

x

Number

x position of the Box

virtuosity.collisionManager.shape.Box.x

y

Number

y position of the Box

virtuosity.collisionManager.shape.Box.y

width

Number

width of the Box

virtuosity.collisionManager.shape.Box.width

height

Number

height of the Box

virtuosity.collisionManager.shape.Box.height