Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jessekirbs on January 27, 2015, 01:16:00 AM
-
Hello,
I'm trying to control Mecanim with Playmaker. Specifically, I'd like an object's Mecanim state to activate when the player walks through a trigger. What Playmaker actions do I use for this? I've searched around but can't seem to find the answer. Thanks in advance!
-
Do you have these actions?
https://hutonggames.fogbugz.com/default.asp?W1031
-
LampRabbit,
I do, I'm just having a hard time finding documentation on their implementation. Could you point me in the right direction? I don't really understand which one activates a new Mecanim state. Thank you.
-
Mecanim decides what state it should be in, you should manipulate the Mecanim Parameters like Bool, Float, Trigger, etc from PlayMaker so that Mecanim will see the changes and fire appropriate transitions that you have setup inside that controller, moving it to another state.
-
How cool would it be though if you could navigate mecanim states just by mirroring what state you're in on any given FSM. Just like how state synchronization works but the other way around. I know you can achieve the same thing with parameters, but this would be a nice clean way to dictate transitions, with less setup and potential for variables clashing.
-
Hi,
There is possibly a solution, I haven't tested it and the answers apparently isn't complete, but I could give it a go sometime.
http://answers.unity3d.com/questions/808676/getting-a-mecanim-state-and-change-its-clip.html
Please bump me towards the end of the month, I'll try to have a look.
Bye,
Jean
-
How cool would it be though if you could navigate mecanim states just by mirroring what state you're in on any given FSM. Just like how state synchronization works but the other way around. I know you can achieve the same thing with parameters, but this would be a nice clean way to dictate transitions, with less setup and potential for variables clashing.
Hi,
that would be very great indeed!
-
Hi,
I think you will be missing the state transitions tho, which really is what makes Mecanim a better solution than conventional animation management.
Bye,
Jean