Post navigation

How to create teleporter objects in Jibe and Unity3d

It’s fun to walk, run and fly around in a Jibe world. Multiuser 3d virtual worlds like Jibe are at their best when you explore them. You never know what you might discover over the virtual horizon.

If you want to give visitors in your Jibe world the ability to instantly “teleport” from one location to another, you can easily set that up too. Today we’ll learn how to set up any object in your Jibe world so that, if you click on it, your avatar is instantly teleported from one place to another.

If you’re a current Jibe customer, you’ll find a detailed section in the Jibe User Manual and Developer Reference (downloadable here) that explains how to set up “Teleport Links.” This gives you the ability to add buttons on the Jibe User Interface that will teleport avatars to any locations you wish to define.

But what if you want to create an inworld object like a sign or a door that, when an avatar clicks on it, automatically teleports them somewhere?

Here’s how you can set it up in a few simple steps.

– Step 1: Create a New Script

Fire up your Unity editor and create a new C# script.

How to create a new C Sharp script.

Name this script “ClickObjectTeleport” and double-click on it in your Project window to start editing it.

Find a copy PlayerParticles in your Project folder and drag it onto the Teleport Particle Generator field in the Inspector settings. This will generate a nice particle effect when avatars teleport.

Drag this into the proper field in the Inspector window.

All set.

The last thing you need to add is the Teleport Destination. We’ll do that in the next step.

– Step 3: Set up a Teleport Destination

Find the location where you want an avatar to arrive when they teleport and create an empty GameObject at the precise point you want the avatar to appear.

Creating an empty GameObject.

Your empty GameObject in your scene.

Rename your empty GameObject something like Teleport arrival point so you can easily find it in your Hierarchy window. Remember, it will be invisible in your scene!

Now go back and select the teleporter cube you created, go into the Inspector window, and drag your Teleport arrival point object from your Hierarchy onto the Teleport Destination field in the Inspector settings.

Perfect!

You’re done!

Log in to your Jibe world, walk your avatar up to the teleporter cube, and click on it. You’ll immediately appear in a shower of particles at the location of your Teleport arrival point object.

Hey, I tried to chase your rabbit into the glowing rock and could not. 😦
I also love your idea of creating teleport portals. Would be cool if I could chase your rabbit into the glowing hole in the rock and find myself falling (due to the instant teleport), down the rabbit hole into an entirely new scene! I opt for the Mad Hatter’s Tea Party to be at the other end of the fall!