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

   property alias body: collider.body

   width: radius*2
   height: radius*2

   CircleCollider {
     id: collider
     radius: parent.radius
     density: 0.001
     friction: 1
     restitution: 0.3
     fixedRotation: false
     sleepingAllowed: false
   }

   Image {
     source: "ball-blue.png"
     anchors.fill: parent
   }

   function applyLinearImpulse(impulseVector, worldPoint) {
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded