Hy,
I’m trying to make an object to perform some activity while it’s touching another object - like ground.
Ground is made from polygons using PhysicsEditor.
I’m using this function for detecting collision.
local function onLocalCollision( self, event )
if ( event.phase == "began" ) then
PERFORME ACTIVITY = TRUE
elseif ( event.phase == "ended" ) then
PERFORME ACTIVITY = FALSE
end
end
While the ball is rolling down the hill it’s touching ground, but i’m getting from event = ended.
Works fine with rectangle body, how can i’m make it work with polygon body?
Thanks
[import]uid: 177754 topic_id: 35592 reply_id: 335592[/import]