Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: roach_779 on March 10, 2013, 09:58:52 PM

Title: Grabing an object with mouse and moving [SOLVED]
Post by: roach_779 on March 10, 2013, 09:58:52 PM
I want to grab an object with a mouse and be able to drag around the screen. What actions should I be using?
Title: Re: Grabing an object with mouse and moving
Post by: Lane on March 10, 2013, 11:28:08 PM
You can use a mouse pick and store as a vector 3. Then have the object follow that vector 3.

Is it a gui type drag or a drag through the scene?
Title: Re: Grabing an object with mouse and moving
Post by: roach_779 on March 12, 2013, 01:03:21 AM
You can use a mouse pick and store as a vector 3. Then have the object follow that vector 3.

Is it a gui type drag or a drag through the scene?

Thanks for the reply.
Drag through scene.
So, I tried using translate, but rather than moving slowly, it pops into position.
Title: Re: Grabing an object with mouse and moving
Post by: Lane on March 12, 2013, 07:05:51 AM
You can use a mouse pick and store as a vector 3. Then have the object follow that vector 3.

Is it a gui type drag or a drag through the scene?

Thanks for the reply.
Drag through scene.
So, I tried using translate, but rather than moving slowly, it pops into position.

Use Move Towards, Translate will make a change from A to B in the object coordinates, whereas Move Towards will compute a direct line from A to B and follow it. You'll notice the difference in options.
Title: Re: Grabing an object with mouse and moving
Post by: 3d_Artist1987 on March 12, 2013, 10:53:52 AM
Hi,

try with this action,may be help you.
http://hutonggames.com/playmakerforum/index.php?topic=2509.0

Dev
Title: Re: Grabing an object with mouse and moving
Post by: roach_779 on March 13, 2013, 09:28:42 PM
Thanks guys it worked!