It seems that the end of a collision event.phase does not mean that it is ‘resolved’.
local function onLocalCollision( self, event )
if ( event.phase == "ended" ) then
print( "collision ended with " .. event.other.index )
-- OUTPUT: collision ended with 2
event.other.x = 0
-- ERROR: Cannot translate an object before collision is resolved.
end
end
So how do you actually know when a collision is resolved ?
I’ve seen posts about using timer.performWithDelay(), but that would just be a guess, wouldn’t it, hoping that the collision would resolve by then ?
And what if the object is involved in another collision before the timer fires? [import]uid: 186251 topic_id: 33239 reply_id: 333239[/import]