PlayMaker News > General Discussion

Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]

(1/3) > >>

jeanfabre:
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/SmoothPortals

Thanks 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

PolyMad:
Wow this is cool  :o

djaydino:
Hi.
Nice, i saw this one on Brackeys channel.
I was actually planning to make a tutorial for it, but you beat me to it :P

jeanfabre:
Hi,

 I think it would be great you still do it, just take what I did, then you can concentrate on making the tut itself.

 Bye,

 Jean

djaydino:
Hi.
I haven't looked yet to your sample, but i think i will try to build myself 1st and then compare it with yours.
Just to see if there will be differences in setting this up. (for educative reasons :) )

After that i will make a video tutorial for it :)

Navigation

[0] Message Index

[#] Next page

Go to full version