Drag & Throw not working very well when actor Y position>320

ChobbifaceChobbiface PRO Posts: 491
edited February 2012 in Working with GS (Mac)
For drag and throw, I've got the following rules set up:

When touch is pressed:

Constrain self.rotation to vectortoangle (self.motionlinearvelocity.X, self.motionlinearvelocityY
Constrain attribute self.motionlinearvelocity.X to 2*(game.mouseposition.X-self.positionX)
Constrain attribute self.motionlinearvelocity.Y to 2*(game.mouseposition.X-self.positionX)

This works perfectly when the screen size is at 480x320 (i.e. iPhone landscape) and the actor lies somewhere in there. But I want the height to be 1000px instead, and the actor's position to start halfway up the screen e.g. at 600px Y position. I've also adjusted the scene camera origin to start there (at Y position 400 which covers the actor). BUT the drag throw doesn't work quite right anymore, the actor just kind of shoots downward when touching him and quite difficult to drag around.

Where am I going wrong? Thanks for any thoughts.
Sign In or Register to comment.