hi, i have an object that i scale, but the contentBounds stay the same, i know this is one of the “gotcha’s” from scaling an object… but how can i scale the bounds as well? i tried setting a shape to the object, but when i print the bounds, they are still the same…
here is the code im talking about:
playerShape = { -25,70, 25,70, 25,-35, -25,-35 }--#####the object shape physics.addBody(player, {bounce=0, friction=0.5, density=5.0}, {isSensor=true, shape=playerShape} ) player.name="player" --#########code ommited to show you a simpler code :) player:scale(1,2) -- //TODO scale player bounds player:play() --########## bounds always print the same, no matter the shape ###### print("player.ymin"..player.contentBounds.yMin) print("player.ymax"..player.contentBounds.yMax)
thanks for the help! and sorry if this is a noob question