How do I set the rotation of an entity that has a BoxCollider? I want to make sure that the BoxCollider rotates correctly with the entity.
Also, I want to rotate the object on its center.
EntityBase {
entityType: "satellite"
entityId: satellite
id:satellite
Image
{
id:asteroidImage
width: 300
height: 80
source: "images/test satellite.png"
}
BoxCollider
{
id:collider
width: 300
height: 80
fixedRotation: false
//HOW TO SET ROTATION OF COLLIDER AND ENTITY?
}
MovementAnimation {
target: parent
property: "pos"
velocity: Qt.point(-200, 0)
// start running from the beginning
running: true
}
}