I have been messing around with Corona SDK for a few weeks now, but have not succeeded in creating a genuine collision between a draggable object and a dynamic object.
What I mean: Like in Justin Smith’s Realistic Summer Sports Simulator, or in Finger Balance -> http://www.youtube.com/watch?v=8_iGFsBUsV8
When the dragged object is dragged to above and stops immediately, the object on top of the dragged object has still a bit of force to above, just like in nature. But in the Drag Physics Sample for Corona SDK for example, there is no such force, the object just glues to the dragged object when it should jump a bit. I hope you understand what I am trying to explain, English is not my native language.
Thanks in advance!
local physics = require "physics" physics.start() physics. setScale(90) local rect = display.newRect (250,450,50,50) local rect2 = display.newRect (175, 650, 200, 200) physics.addBody(rect, "dynamic") physics.addBody(rect2, "kinematic") function drag (event) if event.phase == "moved" then rect2.x = event.x - event.xStart + 275 rect2.y = event.y - event.yStart + 750 end end Runtime: addEventListener ("touch", drag)- user2281843