Hi,
Is it possible to show a visual line between two items that are connected
For example:
Ball{
id:ball
x:100
y:100
rotation:0
radius:20
}
Square{
id:square
x:220
y:180
rotation:0
width:40
height:40
anchors.top:parent.top
MouseArea{
anchors.fill:parent
onClicked:{
joint.destroy();
}
}
}
DistanceJoint{
id:joint
frequencyHz:15
dampingRatio:0.5
collideConnected:true
bodyA:ball.body
bodyB:square.body
world:world
}
Can there be a thin line that will connect the Ball with the Square.. The line should adjust its rotation as the either items change position.