playMaker

Author Topic: Drag RigidBody  (Read 14982 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Drag RigidBody
« Reply #15 on: April 18, 2013, 04:57:25 AM »
I guess I didn't specify that I was attempting to edit the script myself. Thats where my troubles were. The FSM is already good, I was just having trouble removing the mouse controls in the script so there weren't overlapping actions between my state and the script.

This action is much better, I can setup conditions for dragging in one state, enter dragging mode in another state (if the conditions are met) and exit the state however I need to without adjusting anything in the script.

Great!

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14400
  • Official Playmaker Support
    • View Profile
Re: Drag RigidBody
« Reply #16 on: April 21, 2013, 10:10:38 PM »
Hi,

 I am not getting where is your struggle now :) you don't need to adjust any script with that last action.

Can you share your current result?

bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Drag RigidBody
« Reply #17 on: April 22, 2013, 04:19:18 AM »
It's working fine, I have a state screen cast & wait for mouse input, then to a state that checks the tag of the object, then it goes to the drag state if it is the right tag. Make sense?

Works good now, thanks. :)

Here's a video of it:
http://hutonggames.com/playmakerforum/index.php?topic=3693.0

TheRagMan

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Drag RigidBody
« Reply #18 on: July 20, 2013, 03:55:31 AM »
Hi jean! i have a problem. It seems that the action doesnt work with ARCAMERA, the prefab cam of the AR-vuforia plugin.any idea?

What about a notrigidbody drag? is it necessary? i just need to mova a lightsource around. Thx in advance.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14400
  • Official Playmaker Support
    • View Profile
Re: Drag RigidBody
« Reply #19 on: July 28, 2013, 01:31:01 PM »
Hi,

 in your case, indeed you don't need to drag a rigigbody, only a simple object.

 For this, have a look at official sample, scene "MouseClickToDrag". This should have everything you need to extrapolate on your needs.

 Bye,

 Jean