Could somebody tell me why the following code places the BoxCollider at a different location than the Rectangle?
EntityBase {
Rectangle {
id: s1
width: 100
height: 5
x: 100
y: 0
rotation: 90
transformOrigin: Item.TopLeft;
}
BoxCollider {
id: bc1
width: 100
height: 5
x: 100
y: 0
rotation: 90
transformOrigin: Item.TopLeft;
bodyType: Body.Static
}
}
Thanks!