Hi Everyone,
Ok, so I just released a very nice demo on the Ecosystem, showing off some a very cool Portal feature to transport the player in a different part of the world.
This is an advanced demo, using only 4 fsm, but the math involved in moving the cameras, transporting player are complex, and requires very advanced understanding of quaternions/rotation and general transforms operation. So if you are beginning with Unity, and PlayMaker, this might not be the best sample to study.
The original sample is available on github:
https://github.com/KillianMcCabe/SmoothPortalsThanks to the author for letting me work with this demo
There is one thing that differ from the original code. Because all PlayMaker Fsm are executed within PlayMaker Framework, we can't have one fsm forced to be executed before another one, unlike scripts ( with script execution order), and so I moved the logic from Update to LateUpdate, which is not the case in the original scripts, the results is exactly the same.
Possible improvement:
-- currently, it's for one player, because the logic to move is on the door, so you can't have two players or npcs going through the portal at the same time, it would result is potential bugs. To solve this, each character should hold the logic to trigger the portal, then the gate is just a trigger and a shows the other world, but is not responsible of deciding about who gets to go through the portal.
Let me know if you have questions
Bye,
Jean