Hi, I just recently, as in today, found out about Corona. I’m using the trial ware and I’m trying to figure out a problem I’m having. I defined a rectangle display.newRect() that I can move around using a touch event, and then I added physics and had a crate drop from the top of the application. I don’t want this rectangle to be part of the physic world so I read the docs and it said to use physics.addBody( rect, { isSensor=true} ) so that the object will send a collision message but not interact with the object.
The problem is I have a ground defined but as soon as the game starts this rectangle which is newRect falls through the world, pass the ground into oblivion. If I add physic parameters to this rectangle it falls to the ground, not phase through the ground.
Am I understanding the function of isSensor correctly? I want an invisible trigger, which doesn’t move or interact with the world, in which I can handle an event by something else passing through it, this time a rectangle, and have that call the collision handler and do whatever inside of it.
Thanks again, and I’m looking forward to getting to know all of you. [import]uid: 10832 topic_id: 3250 reply_id: 303250[/import]
