Hi all,
I’m having trouble implementing the joining of two objects upon a collision.
The tutorial i’m using can be found here: http://www.coronalabs.com/blog/2013/02/19/more-physics-tricks-explained/
Essentially I’m using the following code from it.
function resolveColl()
local weldJoint = physics.newJoint( “weld”, self, event.other, self.x, self.y )
end
timer.performWithDelay( 10, resolveColl, 1 )
However, no matter what I do, i’m getting this error - bad argument #-1 to ‘newJoint’ (Proxy expected, got nil)
Within the function, i’ve tried printing both self and event.other to the console which is returning a table for both objects.
Does anyone know why I’m getting this issue?
Any help or suggestions would be greatly appreciated.
Thanks