physics - Corona SDK and moving objects -
i have shapes (rectangle) in game , want implement - when shape object pressed small amount of time , pushed in direction should move small distance pressing shape longer time should moved large distance ( means depending on pressure put on shape , when thrown should move distance relative pressure applied.
regards
you can break problem 2 pieces:
- while object being pressed, accelerates (so longer pressed greater speed gets to).
- as travels, decelerates @ constant rate (so faster it's going @ beginning, longer keeps moving, , farther moves before stops).
now have implement velocity , accelaration, pressure , drag.
if approach doesn't give appearance want, there ways modify it.
Comments
Post a Comment