Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mohvisuals on March 15, 2013, 11:30:17 AM

Title: Scrub Rotate Based On Swipe
Post by: mohvisuals 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.
Title: Re: Scrub Rotate Based On Swipe
Post by: jeanfabre 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