Download
(15 Kb)
Download
Updated: 06/07/20 07:30 PM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Updated:06/07/20 07:30 PM
Created:06/07/20 07:30 PM
Monthly downloads:490
Total downloads:31,117
Favorites:12
MD5:
Lib3DArrow  Popular! (More than 5000 hits)
Version: v0.1 alpha
by: kadeer [More]
Currently in Beta
feel free to use this code, i only made it to see if it was possible to put "more clear" text in 3d space (its really a bunch of images from a spritesheet/billboard)

Required Libraries
  • Lib3D
  • LibGPS
  • LibMapPing

Description

Allows display of an arrow in 3D space which points to a marker and displays how far away it is in meters.

Arrow, marker and distance is automatically updated in real time as the player moves around

Demo Addon

Check out WhereAreYou for a demo of this Lib being used

Usage

1: Create/Set up and return a 3dArrow object named "waypoint" (you can also skip setting these parameters and it will use defaults)
Code:
    waypoint = Lib3DArrow:CreateArrow({
      depthBuffer = false,
      arrowMagnitude = 5,
      arrowScale = 1,
      arrowHeight = 1,
      arrowColour = "FF0000",

      distanceDigits = 4,
      distanceScale = 25,
      distanceColour = "FFFFFF",

      markerColour = "FF0000",
      markerScale = 1,
    })
2: Set Target to point to

Code:
  waypoint:SetTarget(x, y)
3: Remove arrow

Code:
  waypoint:SetTarget(0, 0)
4: Show or Hide individual parts of the 3DArrow
  • arrow is the actual arrow,
  • distance is the number of metres displayed
  • marker is the big beam pole thingy

Code:
  waypoint.arrow:SetHidden(true/false)
  waypoint.distance:SetHidden(true/false)
  waypoint.marker:SetHidden(true/false)
Optional Files (0)


Post A Reply Comment Options
Unread 08/29/23, 09:00 PM  
kadeer
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 76
Uploads: 5
Originally Posted by bizzy401
It would be amazing if someone was able to link this to Skyshards
thats basically why i made it lol points to skyshards and lorebooks in a private addon of mine, but it broke since achievements became account wide (it relied on achievs to check if shard was picked up or not), maybe one of the many skyshard/lorebook addon creators can add something like this as an option
Report comment to moderator  
Reply With Quote
Unread 03/30/22, 10:32 AM  
bizzy401
 
bizzy401's Avatar

Forum posts: 1
File comments: 9
Uploads: 0
It would be amazing if someone was able to link this to Skyshards
Report comment to moderator  
Reply With Quote
Unread 06/03/21, 12:41 AM  
kadeer
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 76
Uploads: 5
Originally Posted by adran06
This is brilliant. Have any mods been made using it yet? Aside from your demo?
Thanks I dont know if any mods use it, i made it as a proof of concept to see if an actual 3d object could be created

It relies on a few other libs and if they break, then this breaks but so far i think its been ok !

Maybe someone with more time than me can actually take it to another level !
Report comment to moderator  
Reply With Quote
Unread 12/10/20, 03:56 AM  
adran06

Forum posts: 5
File comments: 8
Uploads: 0
This is brilliant. Have any mods been made using it yet? Aside from your demo?
Report comment to moderator  
Reply With Quote
Unread 06/07/20, 08:14 PM  
kadeer
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 76
Uploads: 5
Check out WhereAreYou for a demo of this Lib being used
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: