I am having some issues resizing my image sheets hotbox i have it resize to smaller image but the hotbox stayed the same after adding the physics body
[lua] local SheetInfo = {}
SheetInfo.sheet =
{
frames = {
{
– CHARACTER_ANI_1
x=1301,
y=1,
width=700,
height=1196,
sourceX = 0,
sourceY = 0,
sourceWidth = 700,
sourceHeight = 1200
},
{
– CHARACTER_ANI_2
x=599,
y=1,
width=700,
height=1128,
sourceX = 0,
sourceY = 0,
sourceWidth = 700,
sourceHeight = 1200
},
{
– CHARACTER_ANI_3
x=1,
y=1,
width=596,
height=768,
sourceX = 52,
sourceY = 97,
sourceWidth = 700,
sourceHeight = 1200
},
},
sheetContentWidth = 2002,
sheetContentHeight = 1198
}
local myImageSheet = graphics.newImageSheet( “mysheet.png”, SheetInfo.sheet )
local sheetSequence = {
name=“move”,
start=1,
count=3,
time=1000,
loopCount = 0,
loopDirection = “forward”
}
local new = display.newSprite(myImageSheet, sheetSequence)
new.x = 155
new.y = 10
new:scale(0.10,0.10)
new:play()
physics.addBody( new, “dynamic”, {friction=0.3, shape={1000,1000,1000,1000}})
new.gravityScale = 0
new.isFixedRotation = true
new:rotate(0)
new:applyTorque(0)[/lua]