- Home /
Create a slipstream rupture effect (objects through portals like stargate transportation)
I am creating a game, and want to be able to transport my objects between two locations using a portal like system. I am unsure how to do this. I want an effect that will move an object through the two portals as it goes through it, not as a jump in location. I want an effect similar to a Stargate or Portal, where part of the object enters one side, and starts to come out the other side.
Can this be achieved with unity? If so, how could i achieve this? I don't intend to sound like im trying to ask for someone to build this for me, i just don't have any idea how to accomplish this, except for maybe some kind of shader....
Answer by meat5000 · Aug 23, 2013 at 11:56 PM
You can cheat. Occlude your character as he goes through. Instantiate a clone coming through on the other side that follows the original transforms animation and velocity. Destroy clone and teleport your player gameObject to 'take control'.
Just an idea. Play around with it depending on how you want it to look.
I was considering this, but moving control and state to the new copy might cause problems.
You aren't transferring control. You are giving the impression of it. You can begin by transferring the camera. You can instantiate and destroy a model and reposition your character on top and it would be seamless if the animations were set to be frame sync'ed. Start by drawing it on paper to get the logic clear in your $$anonymous$$d of what it is you want to happen step by step.
I understand how to imply control is changed, but I would have to essentially swap my old ship for the new one in all of my data structures, plus, give it the same state data and commands, and then also other components that were attached to it. I want to avoid having to do this.
Any other way?
You dont get me :)
The clone is just for show, for the impression. There would be no swapping of control for one to other.
Essentially any way you look at it, it IS a jump in location. Its all dependant on how well you streamline the impression of how it looks.
If you want to look through the portal maybe you could render another camera onto it like looking at a monitor or something to that effect. But for a multiplayer scenario for example, where people are looking on, cloning would work.
where part of the object enters one side, and starts to come out the other side.
Real question is, what is the scenario in which you would see both sides of the portal at the same time?
Thanks for the feedback and reply. I think I understand what you mean. I might do a "speedy jump" and just move my ship to the detsination with some effect. I want to avoid cloning and such as much as possible, and this effect doesn't seem worth it right now. I might revisit it.
The ship entering out of a portal (ins$$anonymous$$d of just landing on a spot) would be more eye catching and immersive. I also wanted to account for the entrance and exit portals being in the same area the camera will be rendering ( a small hyperspace jump). I will probably make 2 versions of the hyperspace jump, a short range one where a ship just moves quickly to the new destination, and then one for ships moving in/out of a scene for effect, where it enters/exits the portal slowly.
Your answer
![](https://koobas.hobune.stream/wayback/20220613112845im_/https://answers.unity.com/themes/thub/images/avi.jpg)