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

Box2D Examples

 import QtQuick 2.0
 import Felgo 4.0

 EntityBase {

   property real radius: 20

   property alias body: collider.body

   width: radius * 2
   height: radius * 2

   CircleCollider {
     id: collider
     radius: parent.radius
     density: 0.005
     friction: 0.3
     restitution: 0.2
     sleepingAllowed: false
   }

   Image {
     source: "ball-blue.png"
     width: radius*2
     height: radius*2
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded