setGravity 0 on specific objects?

If you have two types of images which you'd like to bounce off of one another, one which you do not want to be affected by gravity, and another which you do, is there a way to accomplish this with Corona?

make one image static or kinematic and bounce another on it

or apply linear impulse to one image and then bounce

Thanks. I intend for them all to be dynamic, just one type not affected by gravity.

Have you tried creating the non-gravity objects as sensors without density?

No I haven't. Will try

You could apply a force directly opposite to gravity to certain objects per frame, that might work...

Or put invisible platforms underneath those objects.

None of those proposed solutions were a perfect fit, but I was able to negate the effect of gravity by using linearDamping. Thanks for the ideas

views:1746 update:2011/9/30 9:15:39
corona forums © 2003-2011