Every frame, I’m using the following code to remove and create a physics body (60 fps) because apparently you can’t directly control a physics body’s size. However, the ball starts shaking back and forth a few pixels as it grows, rather than increasing in size fluidly. I need it to be a dynamic body. Thoughts? thanks.
[code]
–Grow ball
if growBall == true then
physics.removeBody( shooterball )
shooterball.width = shooterball.width*1.1
shooterball.height = shooterball.height*1.1
physics.addBody ( shooterball, { radius = shooterball.width/2})
end
[import]uid: 161435 topic_id: 28451 reply_id: 328451[/import]
