change physics body object size

Hello!!

I have a problem:

First I define an object like this

scrollBackground = display.newRect(0,params.tm+_MINI_IMG_HEIGHT, display.contentWidth, 48)
physics.addBody( scrollBackground, "static", { friction=0.6, filter=collision_filter_platform } )

And then I modify its width (bigger):

scrollBackground.width = ..........

The problem is: where scrollBackground has got longer the object is not working like a body object with collision filter.

Is there another way to make a physics body object bigger without modify its performance?

Thank you very much!

views:2357 update:2011/9/17 18:17:57
corona forums © 2003-2011