The Mini Map functions both as a way of allowing the user to locate their position and relocate themselves to positions far away. The user can make the mini-map appear by clicking the mini-map button on the controller. The mini-map can appear on either controller but can only exist on one of them at a time. The users position and direction are shown as a mall arrow head on the mini-map. The mini-map consists of a background and a 3D structure that perfectly matches the nav-mesh for the environment. The user can point at the min-map with the other controller and a indicating line should appear, pressing the teleport button will result in the user teleportation to the corresponding location of where the line hit the mini-map.
Minimap_Basic
to the sceneMinimapPointer
Script to [VRTK]/RightController
and /LeftController
MinimapPlayer
Script to [CameraRig]
Player Icon
(not Player Icon Sprite
) from Minimap_Basic
Camera (eye)
NavMesh_Minimap
inside Minimap_basic
:Mesh
in Mesh Filter
to the Nav-Mesh for the sceneMesh Collider
component who's mesh matches that in Mesh Filter
Rigidbody
component MiniMap
Background
with your custom backgroundMinimap_Basic
:Box Collider
componentRigidbody
componentMiniMapNotTeleportable
Teleportable
tagMinimapTeleport
Script to [VRTK] / PlayArea
, replacing VRTK_Height Adjust Teleport
MinimapTeleport
Script, drag the Nav-Mesh to the mesh variable slotMinimapPointer/TeleportScript
variable, drag in the PlayArea
GameObjectMinimapController
script to each controllerMinimapController
script, drag the controllers child MinimapHolder
into the Minimap Holder
variable slotMinimap
GameObject is enabled in the beginning so that we can GameObject.Find() it