The following question feels insufficiently answered as well as insufficiently documented: #80
What do we pass to the width and height as arguments provided we're talking about collision boxes?
I don't know how to get the width and height information for the object box. In Spriter Pro itself it also only provides a scale. What is the size the boxes are scaled from? Maybe I am not well informed enough about how Spriter Pro works and that's why I am so confused.

I do know how to get this information for textures. That is simply the actual size of the image.
The following code is how I managed to get the information from the sprites that are being drawn - as you can see I can just multiply the scale of the animation to the size of the textures - however, I don't know where to find the 'size' of the box.
foreach (var info in Animator.DrawInfos)
{
var scale = info.Scale;
var pos = new Vector2(info.Position.X, info.Position.Y);
var size = new Vector2(info.Drawable.Width, info.Drawable.Height) * scale;
var center = Vector2.Zero;// size * 0.5f;
HitBoxes[info] = new[]
{
(pos - center).RotateAround(pos, info.Rotation),
(pos + new Vector2(size.X, 0) - center).RotateAround(pos, info.Rotation),
(pos + new Vector2(size.X, size.Y) - center).RotateAround(pos, info.Rotation),
(pos + new Vector2(0, size.Y) - center).RotateAround(pos, info.Rotation)
};
}
The following question feels insufficiently answered as well as insufficiently documented: #80
What do we pass to the width and height as arguments provided we're talking about collision boxes?
I don't know how to get the width and height information for the object
box. In Spriter Pro itself it also only provides a scale. What is the size the boxes are scaled from? Maybe I am not well informed enough about how Spriter Pro works and that's why I am so confused.I do know how to get this information for textures. That is simply the actual size of the image.
The following code is how I managed to get the information from the sprites that are being drawn - as you can see I can just multiply the scale of the animation to the size of the textures - however, I don't know where to find the 'size' of the box.