 		 */
 		public function setRect(x:uint = 0, y:uint = 0, width:int = 1, height:int = 1, solid:Boolean = true):void
 		{
+			if (usePositions)
+			{
+				x /= _cell.width;
+				y /= _cell.height;
+				width /= _cell.width;
+				height /= _cell.height;
+			}
 			_rect.x = x;
 			_rect.y = y;
 			_rect.width = width;

	 */
	public class Grid extends Hitbox
	{
		/**
		 * Constructor.
		 * @param	width			Width of the grid, in pixels.

		 */
		public function getCell(x:uint = 0, y:uint = 0):Boolean
		{
			if (usePositions)
			{
				x /= _cell.width;
				y /= _cell.height;
			}
			return _data.getPixel32(x, y) > 0;
		}
		
