I am very familiar with all of the physics and the commands in Corona, and I have regular success with most physics objects, but Im experiencing a problem that seems out of the ordinary.
I have an object that falls, hits a sensor, the sensors triggers a function which I called step9(). Here is the function
[lua]function step9()
TestBox = display.newRect (15, 15, 64, 60)
print(“Line 1”)
physics.addBody ( TestBox, “static”, { isSensor = false} )
print(“Line 2”)
end[/lua]
It creates a white 64x60 box in the top left 15x15 away, in the right place where it should be, but I cant add any physics to it. The console prints Line 1, but never gets to Line 2. At first I thought I must just be missing something like a misspelled word, but unless I’ve entirely lost my marbles, I dont think I am. Changing the parameters does nothing.
There are other physics objects in the scene which are still capable of moving and doing things, but this is puzzling me even though it seems like it should be obvious. [import]uid: 67886 topic_id: 14506 reply_id: 314506[/import]