Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: FritsLyn on July 15, 2017, 08:33:45 AM

Title: TouchScript move another than touched
Post by: FritsLyn on July 15, 2017, 08:33:45 AM
Hi good Old PlayMaker forum.
I used to be 100% Playmaker, these days I'm writing C#, but I miss you!

Now I'm stuck with TouchScript, and I noticed there's PlayMaker actions to that, so maybe there's one of you grand old PlayMaker guys that knows this, the TouchScript forum is totally dead.

THIS IS MY QUESTION:

In a 3D world:
Finger on Object A
Object B is (instantly) moved to Object A's Position. (I can do that)
WITHOUT lifting finger and re-touching Object B, I now need to move Object B along X&Z
(I cannot do that, only with a lift of finger, then replace on B, but that is not god enough, I need just to place a finger on A, then move B)


Any clue? Thanks!!
Title: Re: TouchScript move another than touched
Post by: djaydino on July 15, 2017, 12:12:06 PM
Hi,
I did something similar recently for a inventory system.

i will try to explain what you could try :

Finger on GO-A and get the touch position, GO-B moves to GO-A,
Then Disable Collider from GO-A.
Then Raycast To select GO-B (you can use mouse pick for this) and place GO-B in a variable,
Next get touch info, set every frame and you can use the info on GO-B to move it