playMaker

Author Topic: Drag RigidBody  (Read 22872 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Drag RigidBody
« Reply #15 on: April 18, 2013, 07: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
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Drag RigidBody
« Reply #16 on: April 22, 2013, 01:10:38 AM »
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: 2511
  • Mender of the past
    • Cleverous
Re: Drag RigidBody
« Reply #17 on: April 22, 2013, 07: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
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

TheRagMan

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Drag RigidBody
« Reply #18 on: July 20, 2013, 06: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: 15500
  • Official Playmaker Support
Re: Drag RigidBody
« Reply #19 on: July 28, 2013, 04: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