my square sprites from an irregular spritesheet (using SpriteGrabber) are all returning physics bodies as 60x60 which is the size of the 2nd entry in my list. if i swap my second entry round with the third then all my physics bodies are 90x90. basically physics body is coming from the 2nd entry. the sprites display fine but the physics body is not the right size. so in the case below my 3rd sprite is 90x90 but has a 60x60 physics body within it
[lua]function getSpriteSheetData()
local sheet = {
frames = {
{
name = “chuzzle.png”,
spriteColorRect = { x = 0, y = 0, width = 46, height = 48 },
textureRect = { x = 122, y = 198, width = 46, height = 48 },
spriteSourceSize = { width = 46, height = 48 },
spriteTrimmed = false,
textureRotated = false
},
{
name = “crate.png”,
spriteColorRect = { x = 0, y = 0, width = 60, height = 60 },
textureRect = { x = 64, y = 90, width = 60, height = 60 },
spriteSourceSize = { width = 60, height = 60 },
spriteTrimmed = false,
textureRotated = false
},
{
name = “xcrateB.png”,
spriteColorRect = { x = 0, y = 0, width = 90, height = 90 },
textureRect = { x = 0, y = 0, width = 90, height = 90 },
spriteSourceSize = { width = 90, height = 90 },
spriteTrimmed = false,
– etc [/lua]
[import]uid: 6645 topic_id: 3561 reply_id: 303561[/import]