Hello, i want to trow a tomato but if i use the drag and drop behavior it stops directly if at drop it... but i want it to fly a little bit forwards.. anyone?
I achieved this by giving physics to the object, on drag checking the X and Y, and on drop checking the X and Y, calculating the distance and time, hence getting the speed, and adding speed to the object based on those numbers.
Develop games in your browser. Powerful, performant & highly capable.
I achieved this by giving physics to the object, on drag checking the X and Y, and on drop checking the X and Y, calculating the distance and time, hence getting the speed, and adding speed to the object based on those numbers. THNX!
THNX!