playMaker

Author Topic: Scrub Rotate Based On Swipe  (Read 1828 times)

mohvisuals

  • Playmaker Newbie
  • *
  • Posts: 14
Scrub Rotate Based On Swipe
« on: March 15, 2013, 11:30:17 AM »
I need to create a rotation based on a scrubbing swipe. Not just an itween rotate add with a predetermined degree of rotation.

Any direction would help....thanks in advance.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Scrub Rotate Based On Swipe
« Reply #1 on: May 14, 2013, 04:54:01 AM »
Hi,

 have one gameObject, that you rotate as you swipe ( using incremental rotation).

 then use a second gamobject and play catch up with it using the action "Vector3 Rotate Towards" for example, that gameObject is your platform to add stuff to it.

for detecting swipes and incremental touch drag, I would recommand you use Input.Touches or a similar library that is coveredy with playmaker custom actions.

https://hutonggames.fogbugz.com/default.asp?W961

bye,

 Jean