Greetings,
I’m using the ‘gameUI.lua’ to help me drag an object- code found here:
I have it implemented and works. Two questions - if I want to edit the params ( maxForce, frequency, dampingRatio ) of the dragBody - How would I do this (probably really simple…)? I’m using the example to trigger the dragBody on object found below:
local dragBody = gameUI.dragBody object:addEventListener( "touch", dragBody )
ALSO - my object that I’m using to drag is relatively small. So it’s a little difficult to register a touch on the object. What would be the best method to make the drag registration of the object easier (say 4x the size of the actual object) while still keeping the object/physics body same size… ?
Thanks!
Seth