throwing an object question not resoved yet

carlosacj36carlosacj36 Member Posts: 54
edited November -1 in Working with GS (Mac)
Hi,
sorry my english

i have read every post about from 1year ago until now, and can not find the answer to my question. The best tutorial that was very close to my answer is this



but i would like to know how to do the same thing using acelerometer, i need tha when i acelerate move the iphone, throw the actor in the same direction, of course no pure x or pure y, if i acelerate the iphone in an angle i need to throw that actor in the same angle, and the(aceleration, movement, motion, i dont know) in the same proportion of my movement of the iphone.

Comments

  • carlosacj36carlosacj36 Member Posts: 54
    help please
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    You can get the angle of the "throw" by using:
    vectorToAngle( game.Accelerometer.X , game.Accelerometer.Y )
Sign In or Register to comment.