I'm using physics. I can easily detect when two objects initially collide but I want to check at a later time to confirm that they are still touching. Is there an easy way to check this (post-collision) "touching" status?
Thanks!
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
I'm using physics. I can easily detect when two objects initially collide but I want to check at a later time to confirm that they are still touching. Is there an easy way to check this (post-collision) "touching" status?
Thanks!
On the collision you could do something like
1 2 3 4 | if event.phase == "began" then isTouching = true elseif event.phase == "ended" then isTouching = false |