I have a multiple-element body. For simplicity, I have cut down the number elements to just 2. I am trying to identify the element during post collision event by using event.otherElement. According to the documentation, it is supposed to return 1 and 2 (as the body has 2 elements). But it is returning random numbers, sometimes negative and somethings much higher number than 2. What’s wrong here? Me or this code or Corona?
[code]
local function onPostCollision( event )
print(event.other.name…" — "…event.otherElement)
end
myObj:addEventListener( “postCollision”, onPostCollision )
[/code] [import]uid: 19297 topic_id: 12211 reply_id: 312211[/import]