Hello community,
I’d like to increase the size of my object upon certain events (I’d like for Reggie the bacteria to grow when he eats). However, when I do, the collision-detection area seems to remain as the original size of the object. After expanding the object, it will overlap with other objects until its very center collides.
I tried different methods of expanding. Adjusting the height/width. Adjusting the xScale/yScale. Transitioning the height/width. etc. I’ve also tried adding the body again as a physics object after its transformation.
I’ve considered deleting the object and creating it again, but I’d like to avoid this if possible. My hunch is this would cause lots of problems in other areas.
Is there any way to keep the collision-detection area so that it matches the actual boundaries of an object after changing the size?