Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Box2D Examples

 import QtQuick 2.0

 Repeater {
   id: building

   property int floors: 3
   property int stairways: 3

   property int blockWidth: 20
   property int blockHeight: 20

   width: stairways * blockWidth
   height: floors * blockHeight

   model: floors * stairways

   delegate: WoodenBox {
     x: building.x + index % stairways * width
     y: building.y + Math.floor(index / stairways) * height;

     width: blockWidth
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded