Is it possible?
I try this: (but it’s not working)
ColliderBase
{
id: collider
bodyType: Body.Static
Component.onCompleted:
{
var component = Qt.createComponent("qrc:///qml/entities/MyBox.qml");
if (component.status === Component.Ready) {
var col = component.createObject(collider);
col.width = 2000;
col.height = 20
fixtures.push(col)
}
}
onFixturesChanged: console.log("add fixture")
}
MyBoxCollider is simple Box