PlayMaker Updates & Downloads > Share New Actions
Drag RigidBody
Lane:
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:
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:
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:
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:
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
Navigation
[0] Message Index
[*] Previous page
Go to full version