Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Box2D

Contains static properties of the Box2D physics engine. More...

Import Statement: import Felgo 3.0
Inherits:

QtObject

Properties

Detailed Description

This singleton object allows changing static properties of the Box2D physics engine.

Property Documentation

defaultWorld : World

The default world used by Body objects. It is automatically set to the any created world, if not currently set. If a second world is created and should be used as default for new Body objects, this property should be updated:

 World {
  id: newWorld

  Component.onCompleted: Box2D.defaultWorld = newWorld
 }