I've been digging in VolAir code and trying to understand the coordinated defined in the levels.
As i read in the FAQ it seems the level editor is and will not be released which is understandable.
My question is with the Multiplayer level. I choosed it because it fill the camera.
Level {
cameraBoundary: Qt.rect(0.21014, -24.2574, 20.7089, 11.6926)
completionThreshold: 25
fileName: "arena2"
fillCamera: true
parallaxOrigin.x: 11.220729
parallaxOrigin.y: -19.160648
Polygon {
body.active: false
body.vertices: [[-12.1123, 12.0156], [12.1731, 12.0156], [12.1731, -1.70233], [-12.1123, -1.70233]]
objectName: "actor39986"
property alias image: graphic0
x: 10.592566
y: -23.612015
z: -10
ImageRenderer {
cacheRenderParams: actor39986.body.bodyType === Body.StaticBody
id: graphic0
sizeScale: 23.742374
source: Util.getPathToImage("background_mp/bg_mp1_flat.jpg")
}
}
}
From the Box2D documentation when positionning a Body (Polygon here) we always define its center.
From the source code CameraBoundary is also defined as world coordinates.
Even armed with that i cannot understand how Polygon ( x: 10.59256, y: -23.612015) is on the center.