Teleportation Gun for Unity3D
A downloadable asset pack
This asset contains a teleportation gun that shoots projectiles with the left mouse button and teleports the player to the last projectile with the right mouse button. The other functionality is a projectile view, that you can activate by holding the 'V' button. This means that when you shoot the projectile and you press the V button, you can see "through the eyes" of the projectile.
In the asset are also included models for the teleportation gun, projectile, wooden floor and wooden wall. Also in the asset there is a Demo scene where you can test the functionality of the portal gun
Setup:
To setup the asset you can use the already existing Player prefab, or you can use the scripts independently.
These are the steps to setup teleportation gun, if you want to use the scripts independently (refference the prefab):
1. Attach the Player script to your player. The player has to have a Collider and Rigidbody with frozen rotation on X, Y and Z axis
2. The player object has to have a Camera as a child object attached to it. This camera should be assigned to the Player script
3. Create a teleportation gun object using the given model and make it a child of the player
4. Create empty object that is the Gun point. Move it to the front of the gun. This will be where the projectiles shoot off, so make sure it points forward
5. Attach the Teleportation Gun script to the teleportation gun object and set the following parameters:
- Projectile: attach the projectile prefab
- ProjectileSpawn: attach the Gun point object
- Player: attach the player object
- projectile speed: set the projectile speed. From testing the best projectile speed is 1000
- last projectile: leave it empty
If you want to use a custom prefab for the projectile, you should attach a child camera object with the projectile controller script and disable it (reference the prefab)
Status | Released |
Category | Assets |
Author | bivanov |
Tags | 3D, Asset Pack, gun, Low-poly, portal, portal-gun, teleportation, teleportation-gun, Unity, unity3d |
Purchase
In order to download this asset pack you must purchase it at or above the minimum price of $19.99 USD. You will get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.